Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find out the control focus is jumping to?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01368256
Message ID:
01368330
Views:
8
Beat me! :) I was only thinking about it, too lazy to type.

>If ALL controls are placed in the form (not in some container)
>The you could use this (in Init event of the form):
>
>FOR EACH oControl IN thisform.Controls
>    IF PEMSTATUS(oControl, "GotFocus", 5) AND;
>       NOT INLIST(UPPER(oControl.Name), PUT THE NAMES OF CONTROLS YOU WANT TO EXCLUDE IN UPPER CASE HERE)
>       BINDEVENT(oControl,"GotFocus", thisform,"PopulateListBox", 1)
>    ENDIF
>NEXT
>
>If you use some container in that form (PageFrame, Container, etc) you should do this as a method in the form and call it recursively for each container.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform