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

Hotkey behavior

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

    Hotkey behavior

    Odd.

    On forms that have buttons with scripts attached, clicking the button isn;'t the same as using the button's hotkey. I find this to be most evident when the button script shifts focus to another form. When clicking it, focus shifts properly. I'm using two popup forms in this case. Bug or feature?

    Tom Lyon

    #2
    RE: Hotkey behavior

    Tom,

    This may seem like a goofy question but, what's the purpose of the hotkey?

    kenn
    TYVM :) kenn

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

    Comment


      #3
      RE: Hotkey behavior

      Tom,

      Although I don't usually use button hotkeys (too many key combinations), I ran a test on one form that uses buttons to open dialog forms and the hotkey works exactly the same as pressing the button. Maybe you could post a sample button script. One thing I have seen is if you open one form as a dialog from a main form, and then open a second form from that dialog, "parentform" will refer back to the original main form, not the first dialog opened. This can lead to some surprising results.

      Jerry

      Comment


        #4
        RE: Hotkey behavior

        Here is the button script:
        Code:
        PARENT.commit()
        	:Callsset:addrecord.Push()
        	:Callsset:Linenumber.value = right(station, 1)
        	:Callsset:Username.value = :Signup_Set:Username1.value
        	:Callsset:Name.value = trim(:Signup_Set:First_Name.value) + " " + trim(:Signup_Set:Last_Name.value)
        	:Callsset:Home_Phone.value = :Signup_Set:Home_Phone.value
        	if iif(Table.field_get("signup->virtual").value_get(),"T","F") = "T" then
        		:Callsset:Callnature.value = "* VIRTUAL SERVER ACCOUNT *" + :Callsset:Callnature.value
        	end if
        	if iif(Table.field_get("signup->sleep").value_get(),"T","F") = "T" then
        		:Callsset:Callnature.value = "*** USER SLEPT *** " + :Callsset:Callnature.value
        	end if
        	if iif(Table.field_get("signup->cancel").value_get(),"T","F") = "T" then
        		:Callsset:Callnature.value = "*** USER CANCELLED *** " + :Callsset:Callnature.value
        	end if
        action = "call transfer"
        parameter = username
        script_play("audit")
        :Callsset:Callnature.Activate()
        end
        
        ...and here is the 'audit' script called from the button:
        
        ''XBasic
        tbl = table.open("audit", FILE_RW_SHARED)
        tbl.enter_begin()
        	tbl.station = station
        	tbl.techname = techname
        	tbl.time = time()
        	tbl.date = date()
        	tbl.action = action
        	tbl.parameter = parameter
        tbl.enter_end(.T.)
        tbl.close()
        end

        Comment


          #5
          RE: Hotkey behavior

          Basically, a hotkey, also called an accelerator key, is a shortcut key that can be assigned to any button by prepending the button text with an ampersand. This causes A5 to trap, say, CTRL-Y and simulate a button press via the keyboard when the key combination is invoked.

          Does that kind of explain it?

          Tom Lyon

          Comment


            #6
            RE: Hotkey behavior

            Just another thought. What is the hotkey combination? If this combination is a reserved combination like CTRL-E, this could cause problems. The usersguide gives a list of available combinations.

            Jerry

            Comment


              #7
              RE: Hotkey behavior

              Yup,

              For some reason, I confused it with the 'Hotspot" and was trying to figure out why you needed both to do the same thing. Oh, Duh! Must be 2 nights in a row of short sleep. My only excuse!

              Thanks Tom,

              kenn
              TYVM :) kenn

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

              Comment


                #8
                RE: Hotkey behavior

                In this case, it is CTRL-A. I have no menus and the A5 window is hidden, so it should be a good hotkey choice. If not, I'm showing my rookie side, again :)

                Tom Lyon

                Comment


                  #9
                  RE: Hotkey behavior

                  Tom,

                  A little more experimentation and I was able to get a similar result as you. The problem seems to be that as long as you hold down the key combination the hotkey continues to fire. If you happen to have the same hotkey on the form being opened, it will also fire almost immediately. This could obviously cause some odd behavior. Even if you trap the hotkey with the OnKey event, you get the same result.
                  In my test case, CTRL-A pushed a button to run a script and open a form as a dialog. On the dialog, I had a button with the same hotkey combination that closed the dialog form. Holding down CTRL-A would eventually crash the computer as I could get multiple dialogs open and the script running multiple times.

                  Jerry

                  Comment


                    #10
                    RE: Hotkey behavior

                    Maybe to prevent the hotkey from repeating, which is normal behaviour for a key kpet pressed, you could add code so the action won't repeat until a keyup occurs, (while keydown or waitfor keyup or whatever) then allow it to reset the action. I haven't really thought this through but have played around a little with using single key hotkeys and modal forms and found the results to be inconsistent, or odd. I am hoping this works better in V5 and know that there will be a key trapping genie in v5 that I hope will address this.

                    Russ

                    Comment


                      #11
                      RE: Hotkey behavior

                      Good point, Jerry. I'd forgotten that keys tend to repeat. OnKey with a key buffer flush *might* work, but you know, it looks like a single click with the mouse is so much easier to deal with at this point :)

                      Tom Lyon

                      Comment

                      Working...
                      X