Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Maximize? NOT!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Maximize? NOT!

    Time to start a new thread.

    My autoexec scrip contains: Controlpanel.hide() and controlpanel.maximize(). controlpanel.maximize() is the ONLY way I can get the startup menu form to maximize. Even explicitly telling the form to maximize won't work.

    I have custom menus which eliminate the design icon on all forms. (The client has A5 so doesn't want the app in runtime)

    My only problem is that after clicking a button on the startup menu, going to a form, (any form) when returning or closing the form, the startup menu does not...will not...absolutely refuses to maximize.

    I believe it should and I've looked at the close buttons on the forms, the closing form's events and find "nothing" to indicate the startup menu should not maximize.

    I even put this.maximize() on the startup menu's OnInit and OnActivate events. Still won't maximize.

    Any thoughts, short of taking it out behind the wood shed?

    Thanks,

    kenn
    TYVM :) kenn

    Knowing what you can achieve will not become reality until you imagine and explore.

    #2
    RE: Maximize? NOT!

    Ok Ken,
    Here is your menu. I created several additional forms. They all max as one would expect. Let me know if it works for you.
    Peter
    Peter
    AlphaBase Solutions, LLC

    [email protected]
    https://www.alphabasesolutions.com


    Comment


      #3
      RE: Maximize? NOT!

      Hi Peter,

      I even creasted a new menu form thinking the old menu form was corrupted. Same results. I'll advis as soon as I get this up and running.

      Thanks,

      kenn
      TYVM :) kenn

      Knowing what you can achieve will not become reality until you imagine and explore.

      Comment


        #4
        RE: Maximize? NOT!

        Peter,

        I noticed you put the word 'End' on the form's OnInit so I added it to mine. I made some adjustments to match yours and so far it's working as advertised.

        Guess the forest was more like a jungle. Thanks for taking the time to clear the snow and ice from my windshield. (Yes, we're supposed to ge 4" to 8" of the wet white stuff tonight and tomorrow)

        I appreciate your efforts and will be studying your example further. No doubt there will be others who will be helped by it as well.

        Thanks again,

        kenn
        TYVM :) kenn

        Knowing what you can achieve will not become reality until you imagine and explore.

        Comment


          #5
          RE: Maximize? NOT!

          Ken,

          Hope you enjoy the snow.

          I'm taking the family to the beach today. Going to soak up some sun and salt.

          -- tom

          Comment


            #6
            RE: Maximize? NOT!

            Yah, sure, U-betcha! Talk about rubbing beach salt into a wound!! Got an inch so far. 2 weeks ago, we had 2 days of temps in the 80's (That was summer). Last Tuesday it was 65 (that was fall) Today it's winter. I'll send ya my suntan lotion sice we didn't need it this past summer.

            I don't like to wish time away but as far as v5 is concerned, June can't come soon enough.

            kenn
            TYVM :) kenn

            Knowing what you can achieve will not become reality until you imagine and explore.

            Comment


              #7
              RE: Maximize? NOT!

              I just put the END there so as to preserve the code you had. No big deal either way. Hope it is all working for you.
              Peter
              AlphaBase Solutions, LLC

              [email protected]
              https://www.alphabasesolutions.com


              Comment


                #8
                RE: Maximize? NOT!

                Good Morning Peter,

                'Almost' all is well. The main menu opens OK as do the forms from the main menu. There is a glitch though. Form 2 opens from the menu and form 3 opens from form 2. Form 3 won't maximize, not even close. I'm just not getting a chance to have a look see.

                Thanks,

                kenn
                TYVM :) kenn

                Knowing what you can achieve will not become reality until you imagine and explore.

                Comment


                  #9
                  RE: Maximize? NOT!

                  Ken,

                  OK, here is what I found. The revised no. 2 sample has a button on each form opening the subsequent form. They all max as I would expect. However, when I close the last form (or previous form) the previous form still open, goes into windowed mode. So I selected the "maximize button" under form properties/window on each form and now they all stay maxed. If you want to bullet proof the process, put this.maximize() in the OnActivate of each form. Then the user can still window the current form, but if you click on another form, it will immeadiately mazimize.

                  Additional trick: If you deselect all four window style buttons and deselect caption (with no caption typed in), then nobody can do anything with the form. You can't move it, size it, etc. Actually, when the form is maxed, they can still window it, but once they have done that it is permanently locked in place. See the form called MenuShield in the sample.

                  Good luck,
                  Peter
                  Peter
                  AlphaBase Solutions, LLC

                  [email protected]
                  https://www.alphabasesolutions.com


                  Comment


                    #10
                    RE: Maximize? NOT!

                    Peter,

                    I downloaded your example and will have at it. FYI - This is what I've tracked down thus far.

                    When form3 is opened from form2 it is NOT maximized and form2 Restores down. Then, when form3 is closed, the CP is Restored down. However, when form3 is opened from the CP, it opens maximized.

                    I created a test form and a button to open form3. Form3 opens maximized. Using the Genie, I also placed a new button on form2 to open form3 and it opens form3 maximized. I used only the code generated by the Genie.

                    So then, the logical place to check is the script on the 1st button on form2.

                    Examination of the button script reveals no clues about down sizing the form. I created a new button and copied the script with the same results. I placed this.maximize on the button script as well as on form3's OnActivate and OnInit events. Same results - no maximization. I�ve used this script to open other forms (only the names are changed to protect the innocent) and it works flawlessly.

                    I'll examin and try it.

                    Thanks,

                    kenn
                    TYVM :) kenn

                    Knowing what you can achieve will not become reality until you imagine and explore.

                    Comment


                      #11
                      RE: Maximize? NOT!

                      Hi Peter,

                      I selected the "maximize button" under form properties/window as well as adding this.maximize() to the form's OnActivate event and now all form open and close as maximized.

                      It's a puzzel to me how all this interacts. For example, these steps are not needed if a button uses the genie's code to open a form. Yet, when a custom script is used an a button to open a form, the these steps ARE needed.

                      I appreciate and thank you for your efforts and help.

                      kenn
                      TYVM :) kenn

                      Knowing what you can achieve will not become reality until you imagine and explore.

                      Comment


                        #12
                        RE: Maximize? NOT!

                        Ken,

                        Pardon me for rubbing it in, but the beach was great today. One thing though, saw lots of young women with tattoos. Haven't been to the beach in a while but felt like I'd missed a sea change in fashions somewhere along the way. It's clear I'm very much out of touch with what's currently in vogue.

                        -- tom

                        Comment


                          #13
                          RE: Maximize? NOT!

                          Yah, you poor guy. I feel for ya! No doubt the next step will be tatoos taking the place of clothes or did I miss a sea change in fashions somewhere along the way?

                          Glad you had a good time. Did you suffer any withdrawals w/o a computer and the message board?

                          kenn
                          TYVM :) kenn

                          Knowing what you can achieve will not become reality until you imagine and explore.

                          Comment


                            #14
                            RE: Maximize? NOT!

                            That's why they made snowcones. Perfect excuse to trapse back to the car, plug in the 12-volt Jornada, link up with the cell phone and cruise the boards :)

                            Tom Lyon

                            Comment


                              #15
                              RE: Maximize? NOT!

                              The only way I could get the forms to maximize every time was to do the following:

                              Under the forms OnActivate, add inline xbasic to read:

                              :alphabet_Main.maximize()
                              alphabet_main is my form name
                              If I put this in the on ini, it does not work if the previous window you were in was not maximized.

                              You can also put this in the OnInit to change the title of the form window so it does not show
                              [main.dbf Form view (Form 1)
                              :alphabet_main.window_title = "Alphabet Main Menu"

                              Comment

                              Working...
                              X