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:
[ul]
[li]cntnrFields = visible and NOT enabled.[/li]
[li]cntnrButtons = visible and enabled.[/li]
[li]btnSave = NOT visible.[/li]
[li]btnDump = NOT visible.[/li]
[/ul]
Edit button is clicked within cntnrButtons causes:
[ul]
[li]cntnrFields = visible and enabled.[/li]
[li]cntnrButtons = NOT visible and NOT enabled.[/li]
[li]btnSave = visible.[/li]
[li]btnDump = visible.[/li]
[li]First field in cntnrFields gets SetFocus.[/li]
[/ul]
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.
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:
[ul]
[li]cntnrFields = visible and NOT enabled.[/li]
[li]cntnrButtons = visible and enabled.[/li]
[li]btnSave = NOT visible.[/li]
[li]btnDump = NOT visible.[/li]
[/ul]
Edit button is clicked within cntnrButtons causes:
[ul]
[li]cntnrFields = visible and enabled.[/li]
[li]cntnrButtons = NOT visible and NOT enabled.[/li]
[li]btnSave = visible.[/li]
[li]btnDump = visible.[/li]
[li]First field in cntnrFields gets SetFocus.[/li]
[/ul]
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.