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

Timing of splash screen V5 -vs- V6

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

    Timing of splash screen V5 -vs- V6

    A while back, on the V5 phorum, I posted a question about seeing the 'No databases open' menu when my app was run from an icon and the database was still loading. The solution, which worked well, was to add -MINIMIZE to the startup file and then maximize A5 once the application's main menu was loaded. In addition, I use a splash screen and added a login screen.

    The result is that the splash screen displays first, and after initialization, my login screen displays in the center of the screen on top of the splash screen. Looks good. (see attached image)

    The same exact application running against V6 behaves differently. The splash screen is displayed correctly, but is hidden prior to my login screen. This causes the login screen to appear in the upper left corner of the screen. Not very pretty.

    Question is... Can anything be done to 'correct' this problem. It seems as though V6 internal code has been rearranged a little bit, causing this issue.

    Regards,

    Jim

    #2
    RE: Timing of splash screen V5 -vs- V6

    Jim

    The effect you are seeing is about the same as in A5V4. When A5V5 came out, a number of people didn't care for the effect and wnated the way it was in V4. Now, if you don't have a splash screen, the program opens directly to your start up form.

    Jerry

    Comment


      #3
      RE: Timing of splash screen V5 -vs- V6

      Hi Jerry,

      I could probably live with the splash screen disappearing before my login dialog if the dialog would display in the center of the screen.

      If that can't be done, I'll have to rearrange my code so that the main menu is displayed before the login. Not really what I'd prefer.

      Jim

      Comment


        #4
        RE: Timing of splash screen V5 -vs- V6

        if you have a simple demo that shows the problem, i will take a look at it to see if this is something that is easy to correct.

        Comment


          #5
          RE: Timing of splash screen V5 -vs- V6

          Selwyn,

          Here's a stripped down version. You can log in with

          User-ID test
          Password test

          I included the shortcut as well.

          Thanks,

          Jim

          Comment


            #6
            RE: Timing of splash screen V5 -vs- V6

            ok, i can duplicate the problem. we will fix it.

            here is the issue:

            if you run this script:

            a5.Minimize()
            ui_dlg_box("test",""%dlg%
            Name: |[.20name];
            Password: |[.20password];
            %dlg%)

            the dialog opens in the center of the a5 window.


            but if you run this script:

            a5.Minimize()
            ui_dlg_box("test",""%dlg%
            Name: |[.20name];
            Password: |[.20password];
            %dlg%)

            the dialog opens top left because there is no a5 window in which it can center itself.

            so we will change the way xdialog works so that if a5 is minimized, the dialog centers itself in the windows desktop.

            Comment


              #7
              RE: Timing of splash screen V5 -vs- V6

              While you are working on this, perhaps you can look into this.

              I start my app with a shortcut that sets the title and displays a splash screen as follows:

              "C:\Program Files\A5V6\alpha5.exe" "c:\v6test\kicksoft.adb" -TITLE="Kicks Home Business Software" -SPLASH="C:\v6test\kicklogo.bmp" -ICON="C:\v6test\kicksoft.ico"

              The app automatically runs the autoexec script which starts with:

              ' ****** Set the main menu as backdrop ******
              on error goto OOPS
              frm1=:form.view("Appselect","","","center","center")
              :controlpanel.hide()
              xbasic_wait_for_idle()
              ' ****** Set values for the variables ******
              vHeading1 = "Select An Entity"
              vHeading2 = "An Entity can be a business, organization, project or event."
              biz_name_rl_def = "k=setup,{keylist_build(\"H=.025,1:40[Name]\",''+Biz_name,left(''+Biz_name,40))}{}"
              vsBiz_Name="MindKicks Consulting"
              ' ******* Set the dialog layout **********
              dlg_dlg=""%dlg%
              ....
              and so on to display the Xdialog box shown in the screen shots.

              The interesting part is this. I bring up my main menu as a backdrop to try to hide the system menu and toolbar, (the main menu has a custom view menu and the toolbars set to "none") but on startup I get screen1. After getting the screen shot and reactivating A5, screen2 shows. So, even with the wait for idle, the toolbar is not removed. Screen3 shows the main menu after closing the Xdialog box. Now the toolbar is removed. Screen4 is the result of running autoexec from the control panel. So, once A5 is running, the toolbar is properly hidden.

              Is there a way to make screen1 appear like screen4?

              Hope you understand all that.

              Pat
              Pat Bremkamp
              MindKicks Consulting

              Comment


                #8
                RE: Timing of splash screen V5 -vs- V6

                The two scripts are the same?
                Peter
                AlphaBase Solutions, LLC

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


                Comment


                  #9
                  RE: Timing of splash screen V5 -vs- V6

                  That's the exact reason it was suggested to me to start with A5 minimized; so you can't see the "no database open" toobar & menu. With a splash screen, the login, or in your case, the entity select dialog, would show in front of the splash screen, and then after the selection was made, A5 would be restored.

                  Comment


                    #10
                    RE: Timing of splash screen V5 -vs- V6

                    Thanks Selwyn,

                    It's amazing that you jump on things like this so quickly; I'm sure there are other issues on your plate.

                    On that note:"), is it at all possible for the splash screen to be displayed until the autoexec is completed, or make it user defineable? (Not asking for too much, right?).

                    Regards,

                    Jim

                    Comment


                      #11
                      RE: Timing of splash screen V5 -vs- V6

                      Peter,

                      Yes, it is the same script. I just select the autoexec script on the code tab and press "run".

                      Pat
                      Pat Bremkamp
                      MindKicks Consulting

                      Comment


                        #12
                        RE: Timing of splash screen V5 -vs- V6

                        yes. i forgot to delete the a5.minimize() from the fist one.

                        Comment


                          #13
                          RE: Timing of splash screen V5 -vs- V6

                          i don't think this would be easy because the splash screen, by definition, goes away as soon as a5 ends loading.

                          then, the database loads, and once the db has loaded, the autoexec starts up.

                          this is something you could try though:

                          in the shortcut that starts a5, you are allowed to specify an xbasic script that should execute once a5 has loaded. if you created a bitmap that was the same as the startup screen, and then did this as your xbasic command in the shortcut, it might give the visual impression of working like you want.


                          b = file.to_blob("c:\splash.bmp")
                          ui_bitmap_create("startup",4,4)
                          ui_bitmap_load("startup",b)
                          ui_modeless_dlg_box("Loading...","{image_opaque=startup}")

                          then, in your autoexec, you could do this:
                          ui_modeless_dlg_close("loading...")
                          ui_bitmap_drop("startup")

                          what the script does is load the data from a bitmap image file into a blob variable. it then creates an a5 'image' that is 4 by 4 inches. it then loads the blob data into the a5 image. it then creates a modeless xdialog that shows the startup image.


                          Comment


                            #14
                            RE: Timing of splash screen V5 -vs- V6

                            Thanks for the clarification. That helps!
                            :)
                            Peter
                            AlphaBase Solutions, LLC

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


                            Comment


                              #15
                              RE: Timing of splash screen V5 -vs- V6

                              Thanks Selwyn,

                              I'll give this a try over the weekend and se how it looks

                              Jim

                              Comment

                              Working...
                              X