Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TAB sequence anomaly calling form from GotFocus event
Message
De
30/09/2019 18:44:48
 
 
À
30/09/2019 11:39:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Divers
Thread ID:
01671266
Message ID:
01671274
Vues:
53
>Greetings,
>This edit routine worked properly until about 2 weeks ago when a user noticed and reported this change in behavior. The problem may have started before that, but because the user can just click on an individual field, edit and then save, the tab sequence change would not have been noticed. Description:
>A form with multiple containers, one with fields (cntnrFields) and one with buttons (cntnrButtons). Also two independent buttons (btnSave, btnDump).
>Over all tab sequence: 1 - cntnrFields, 2 - cntnrButtons, 3 - btnSave, 4 - btnDump.
>And of course separate tab sequence within cntnrFields and cntnrButtons.
>
>Initial settings for form viewing:
>cntnrFields = visible and NOT enabled.
>cntnrButtons = visible and enabled.
>btnSave = NOT visible.
>btnDump = NOT visible.
>
>Edit button is clicked within cntnrButtons causes:
>cntnrFields = visible and enabled.
>cntnrButtons = NOT visible and NOT enabled.
>btnSave = visible.
>btnDump = visible.
>First field in cntnrFields gets SetFocus.
>
>User edits and tabs thru fields until reaching the Comments field (txtComments). All works normal.
>In the GotFocus event a messagebox is displayed offering to select from a default list of comments. If NO is clicked then the user goes straight into the comments field and edits and tabs out to the next field. TAB sequence continues normally.
>BUT, if YES is clicked a new form is opened displaying a list of default comments, the user can check mark one or more comments, click EXIT, the comments are inserted via This.Value=. THe New comments are displayed AND the cursor disappears. Normal operation was to have the focus in the Comment field for any additional editing. Also Focus does NOT go to the next field in the tab sequence.
>After much experimenting I found that the focus has gone to the first TAB sequence (EXIT button) in cntnrButtons. Which is NOT visible and NOT enabled. If you hit ENTER at that point the click event of the EXIT button is activated and the form is closed.
>If you continue to TAB it goes to btnSave (skipping any other buttons in cntnrButtons) and btnDump AND then additional TABbing goes back to the first TAB field in cntnrFields.
>
>Anybody have any ideas? Like I said this form was operating properly for MANY years prior to this anomaly popping up. I assume it is due to a Microsoft Windows 10 update.
>Thanks in advance for any help or ideas.

Do you have form-level activate or gotfocus events?
Another thing to check is if there is something with the Mouse configuration -- I believe there's an option for the Pointer to automatically move the mouse to the default button on a dialog box -- perhaps this could be causing the focus to jump to location where you're not expecting.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform