Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GotFocus and Activate sometimes not firing event code
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01242665
Message ID:
01242667
Views:
14
>Just wondering if anybody has run into problems with the event code associated with a form's GotFocus and Activate events simply not running. I've been running into this problem. Either the GotFocus or Activate event has a few statements to set some hotkeys (ON KEY LABEL CTRL-C, for example), so that the hotkey is only active when that form hsa focus (the ON KEY LABEL is reset when form loses focus). Sometimes, these statements just don't execute, even though the debugger's event tracker shows the events firing in the anticipated sequence. However, apparently the event code is not firing, or is firing out of order from what the event tracker is showing.
>
>Has anybody else run into this? This is an intermittent problem. Depending on which other forms are active, and the mechanism and sequence by which the forms are activated, the problem will or won't occur. Thanks very much.

Do you somehow break the sequence? Do you call some object SetFocus() from form's Init, for example? Or some method, such as refresh()?

For debugging purpose you may try to add strtofile statements to all these methods to see, what's going on...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform