Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus
Message
De
19/08/2000 12:57:25
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00405348
Message ID:
00407058
Vues:
31
>>PEMSTATUS(Object,"SetFocus",5)=.t.
>>
>>>How can I know if an specific control has the focus.
>>>Like:
>>>
>>>thisform.whohasthefocus
>>>*!* Return the name of the control that has the focus *!*
>
>This only returns if the object in question has a PEM named SetFocus. It doesn't return if the object has the current focus.

If thisform.activecontrol isn't workable, or something derived from it, you can check to see if there's a TAG property, and then write something unique to it, and spin around thisform looking for it:
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform