General information
Category:
Coding, syntax & commands
Hi Claudio,
Thank you for your kind response. Here is the issue.
Changing a PageFrame's ActivePage inside the form's KeyPress event appears to initially "bypass" the ComboBox's LostFocus. This occurs even though the KeyPress code explicitly calls the ComboBox's Valid event before switching the ActivePage.
The observed sequence of events is:
1) The form's KeyPress calls the ComboBox's Valid.
If the Valid returns .T. then I programmatically switch the ActivePage.
2) Note that the ComboBox's LostFocus does not yet fire.
If the ComboBox was expanded, its dropdown list appears as an artifact on the new page. (My issue!)
3) Upon eventually returning to the ComboBox on the original page, the ComboBox's LostFocus finally does fires.
My form KeyPress based approach appears to work except for this dropdown artifact.
An ability, via keyboard, for the user to rapidly switch between pages is a design decision given to me that I need to implement.
Question to ALL: Is there a way to deal with this artifact image? Must I come up with a different approach to let the user (via keyboard) switch pages?
I'd really appreciate anyone's help here.
Thank you!
Spencer
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only