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

Action Scripting sequence

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

    Action Scripting sequence

    I am playing aroung with action scripting in v5 beta build 1147. To go from one menu to another i am using the sequence:
    close current form
    open new formactivate
    position

    Aside from the fact that the position doesn't work, which I assume is not done, there is an awful lot of flicker. Does anyone have a way to do this without the flicker?

    It seems like there should be a ui_freeze() in action scripting but I don't see it. Am I missing something? I know I can convert it to xbasic but then it's not action scripting anymore.

    Russ

    #2
    RE: Action Scripting sequence

    Russ:

    As One A4 guy to another I too, have seen and been concerned by the flickers you mention. I have noticed in each successive new beta version, however, the flicker seems less. In a previous message, one of the other testers suggested that a slow machine might show these more. I agree but am annoyed with the flicker at my processor speed PIII of 1 gig. Looking over my current clients hardware, it would be really hard to get some of them even into 4.5 because of the screen draw times.

    We have to give up the 'snap' we're used to in DOS screen draws but other Windows DB apps don't 'flicker'. I'm sure that the developers are addressing this. Really Russ, its great that Alpha is even allowing us to watch the progress of each build.

    What say?

    Ken

    Comment


      #3
      RE: Action Scripting sequence

      Other than a few million minor facts, there's nothing I don't about forms that flicker; here are some things that will help you achieve a flicker-free lifestyle:

      1. Solid objects flicker less - don't use the transparent background.

      2. Buttons always have to be solid.

      3. Disregard 1 above pursuant to frames on tabs - use a transparent background only on the frame.

      4. Ui_freeze usually makes things worse.

      5. Some buttons will bleed through tab pages. I would expect A5 to fix this before the release. If they don't, you can fix it by making your own icons (get a free download), converting the ico to a bitmap file format and put that bitmap on your button. It will repaint perfectly. Actually, I do this anyway, A5's bitmaps are, shall we say, a little parochial.

      6. Tabbed objects are still your biggest concern. Experiment between transparent objects and solid objects. Solid "almost" always wins.

      7. Now, see if you can A5 to get check boxes and combo boxes to accept event-handling, color equations, and stop flashing the form borders and I'll owe you.

      Comment


        #4
        RE: Action Scripting sequence

        Russ,

        Apparently vers 5 will leave vers 4 custom toolbars and custom menus alone, until you ok conversion. While unconverted the vers 4 custom menus and toolbars must be translated before they're displayed. This takes time and creates flicker. Try converting them to see if it makes a difference. Be forewarned, once converted they're unintelligible to vers 4.

        Depending on what build you have you can convert them by opening each in design mode and re-saving it with vers 5. The latest build will prompt you for conversion and handle it automatically, I believe.

        I also think some of the flicker may perhaps be related to the speed of your system. On slower equipment these things are more noticeable.

        -- tom

        Comment


          #5
          RE: Action Scripting sequence

          >>I also think some of the flicker may perhaps be related to the speed of your system. On slower equipment these things are more noticeable.

          A good reason to develop, or at least test, with slower equipment. You can tinker with the parameters and see the difference easier.

          As to the original sequence of events that started this thread, I wonder if it would make a difference if Russ opened the new form before closing the current one. I haven't experimented with this in 5.

          Bill
          Bill Hanigsberg

          Comment


            #6
            RE: Action Scripting sequence

            A5V5 is slower opening and closing forms that v4.5. But, on a relatively fast computer (over 1 ghz), the difference is not really annoying. Tom is correct about menus and toolbars. The speed difference after conversion is very noticeable. If anything, flicker is improved from previous versions. I have an app in v4.5 with a number of buttons on a main menu. In v4.5 the screen repaints a number of times when opened, causing the buttons to flicker a number of times, and is very annoying. A5V5, opens slightly slower but the buttons do not flicker.

            One way thing to try which seems to make slow opening less annoying is to use :form.load() instead of form.view() This has a different effect as the form is loaded before it shows.

            Instead of

            :Form.view("yourform")

            use

            frm = :Form.load("yourform")
            frm.show()
            frm.activate()

            Jerry

            Comment


              #7
              RE: Action Scripting sequence

              All good ideas and I will probably do something like this. The point though is that having no time, I wouldlike to do trivial stuff like opening and closing forms with action scripting. There should be no reason to touch xbasic for this.
              Perhaps there needs to be an action scripting script to close one form and open another that's optimized by Selwyn or Cian so these problems are minimized. I think we all probably spend a lot of time just switching forms on the screen so this would help.

              Russ

              Comment


                #8
                RE: Action Scripting sequence

                Russ,

                Are you certain it's not there already. I note that one of the available options when using Action Scripting in Version to open a new form is to keep the called form hidden, to be opened by a subsequent action scripting command... Won't that suffice?

                -- tom

                Comment


                  #9
                  RE: Action Scripting sequence

                  Sounds like that should do. I'll check it out.

                  Thanks

                  Russ

                  Comment


                    #10
                    RE: Action Scripting sequence

                    THis seems to eliminate all the flicker as far as I can tell. It would seem that the action script should do something like this??

                    ui_freeze(.t.)
                    parentform.close()
                    :Form.view("Menu_Personnel")
                    Menu_Personnel.maximize()
                    ui_freeze(.f.)


                    Russ

                    Comment


                      #11
                      RE: Action Scripting sequence

                      UI_Freeze sometimes has its own problems so use it with circumspection.

                      One thing would be to complete your application and then add in ui_freeze commands so you can easily test for undesired effects.

                      Bill
                      Bill Hanigsberg

                      Comment


                        #12
                        RE: Action Scripting sequence

                        Thanks Bill,
                        That sounds like a good idea. by the way what problems have you seen with ui_freeze?


                        Russ

                        Comment


                          #13
                          RE: Action Scripting sequence

                          It sometimes works tool well, freezing events from occuring which you would prefer to keep working. More than this I don't remember although I think a search would turn up the discussion.

                          But if you get everything working first before throwing it on at least if it blocks something you know to remove it without wasting a lot of time in diagnosis.

                          Bill
                          Bill Hanigsberg

                          Comment


                            #14
                            RE: Action Scripting sequence

                            Jerry,

                            I don't believe v.5 is slower opening forms. That was true in some of the builds about two monts ago. Now, it seems to be the same speed as 4.5. There is a slight performance improvement when you open & save the form in v.5 vs. if you don't. Also converting toolbars & menus is a must (but that is automated now).

                            Peter
                            Peter
                            AlphaBase Solutions, LLC

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


                            Comment

                            Working...
                            X