Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find out the control focus is jumping to?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01368256
Message ID:
01368330
Vues:
7
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform