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

Lost setfocus xdialog event in v10.5

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

    Lost setfocus xdialog event in v10.5

    The setfocus xdialog event has been lost. In the example, when Enter or tab is used to move to field 2 or 3, the setfocus event should fire the ui_Beep(). It does not. Use the mouse to move from field 1 to 2 or 3 and the event fires. In my v7,8,9 it works OK. I've tried with 2944 3562 and with 2953 3564 and neither work. Please confirm and I will report.

    Code:
    'Created By  : Ira Perlow
    'Updated By  : j michael wilson
    
    dim dlg_title as c="XDialog Events"
    dim vF1 as C
    dim vF2 as C
    dim vF3 as C
    dim dlg_body as c
    dim dlg_code as C
    
    dim vLevent as c
    dim vLevent1 as c
    
    dlg_body=<<%dlg%
    {startup=init}{can_exit=close}
    {region}
    Field1:|[.20vF1];
    Field2:|[.20vF2!field2evt_*];
    Field3:|[.20vF3!field3evt_*];
    {endregion};
    Dialog Events;
    {text=40,28vLevent1};
    {region}
    <OK> <Cancel> <Reset List!Reset>
    {endregion};
    %dlg%
    
    dlg_code=<<%code%
    IF a_dlg_button="Cancel" .or. a_dlg_button="OK"
        ui_modeless_dlg_close(dlg_title)
    ELSE IF a_dlg_button="Reset"
        vLevent=""
        vF1=""
        vF2=""
        ui_dlg_ctl_goto(dlg_title,"[.20vF1]")
    ELSE IF a_dlg_button=="INIT"
        ' Dialog code initialized
        vLevent=""
        ' Generate list of past 20 events 
        vLevent1=word(vLevent,max(1,line_count(vLevent)-20),crlf(),20)
        vLevent1=vLevent
    ELSE
        ' Add event for those variable we want to see
         vLevent=vLevent+a_dlg_button+Crlf()
        ' Only show most recent 20 lines of events
        vLevent1=word(vLevent,max(1,line_count(vLevent)-20),crlf(),20)
        vLevent1=vLevent
    END IF
    
    'xxxxxxxxxxxxxxxxx
    IF left(a_dlg_button,10)="field2evt_"
      IF a_dlg_button="field2evt_setfocus"
       ui_beep(UI_CRITICAL_BEEP)
      END IF  
     a_dlg_button=""
    END IF
    
    IF left(a_dlg_button,10)="field3evt_"
      IF a_dlg_button="field3evt_setfocus"
       	ui_beep(UI_CRITICAL_BEEP)
      END IF
      
      IF a_dlg_button="field3evt_change"
       	ui_beep(UI_ASTERISK_BEEP)
      END IF  
     a_dlg_button=""
    END IF
    
    %code%
    
    ' Display as modeless, as we can look at it and modify code while open
    ui_modeless_dlg_box(dlg_title,dlg_body,dlg_code)
    Mike W
    __________________________
    "I rebel in at least small things to express to the world that I have not completely surrendered"

    #2
    Re: Lost setfocus xdialog event in v10.5

    I couldn't have imagined how much this has crippled me. My 3 main entry dialogs that took me a month to build.... now completely unusable.
    Mike W
    __________________________
    "I rebel in at least small things to express to the world that I have not completely surrendered"

    Comment


      #3
      Re: Lost setfocus xdialog event in v10.5

      Mike

      I can confirm that the set focus does not work when using the tab key only the mouse click works.

      I tried this in Version 8 and V9 and it works, does not work in Version 10.

      Don't have time right at the moment to go any deeper as to why, but will later. But you might as well turn in a bug report.

      Tom

      Comment


        #4
        Re: Lost setfocus xdialog event in v10.5

        Tom,
        Thanks. I had to go back to build 2814-3539 before I got the functionality back. I was a short step from completion and ready to deploy with run time. I guess I need to check that now too. This type of thing drives me nuts!

        I submitted a bug report.
        Mike W
        __________________________
        "I rebel in at least small things to express to the world that I have not completely surrendered"

        Comment


          #5
          Re: Lost setfocus xdialog event in v10.5

          Mike,
          I've seen the same things with migrating an app from v7 to v10. Seems like the whole thing imploded and I can't even begin to figure out where to start because someone else wrote the code (I can barely write my name, let alone code).

          The only reason I'm even attempting this is because of the OS changes that have occurred since I first started working on my app [friggin' Microsoft:D]

          That said, anyone know how if/how v7 works with Windows 7?

          Comment


            #6
            Re: Lost setfocus xdialog event in v10.5

            This setfocus bug was already fixed but Alpha hasn't released the patch yet. I suggest you stick with v10 until the patch is out for 10.5.

            Comment


              #7
              Re: Lost setfocus xdialog event in v10.5

              this is fixed.
              the setfocus event is firing if you click in a field, but not if you tab into a field.

              the fix will be in the next update.

              In the mean time, however...


              This file contains a pre-release of the updates to the aex file that will be in the next update.
              Exit from Alpha Five and unzip this file into your A5V10 program folder.
              You must also unzip it into the A5V10 Server folder if you are running the stand-alone App Server.
              http://downloads.alphasoftware.com/a...te/aex_v10.zip

              This file contains an update to the exe and dll files. Exit Alpha Five and unzip into your program folder.
              You must also unzip it into the A5V10 Server folder if you are running the stand-alone App Server.
              You can also unzip these files into your A5V10 Runtime folder.
              http://downloads.alphasoftware.com/a...dllexe_v10.zip

              Comment


                #8
                Re: Lost setfocus xdialog event in v10.5

                I have downloaded and tested the fix Selwyn provided and it appears to be working as designed. I was truly stressing over this one with two apps undergoing validation when this surfaced. Back on track again. Very much appreciated Selwyn.
                Mike W
                __________________________
                "I rebel in at least small things to express to the world that I have not completely surrendered"

                Comment

                Working...
                X