Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus
Message
From
19/08/2000 12:57:25
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00405348
Message ID:
00407058
Views:
30
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform