Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Focus
Message
 
 
To
29/09/1998 18:22:50
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Focus
Miscellaneous
Thread ID:
00142150
Message ID:
00142294
Views:
31
>Does anyone have any idea, how to determine which control got focus ?
There's no FOCUS(), and I can't think of anthing else.
Please help.

>TIA

if your application is straight forward - the activecontrol is easy to use. if it is not so straightforward (pageframes with grids on them), referencing the active control becomes complex (i am a new vfp programmer and i cound not get the syntax right for all possible combinations of controls that could have focus). i have just started putting "this.parent.olastcontrol = this" in all my readonly = .f. controls gotfocus event. this creates an object reference to the control, and then later you can "this.name", or "this.valid()", or whatever. i have found many uses for having the current controls object reference handy in a custom property. if you want to use olastcontrol - set it to .NULL. in the pem. and in the destroy event of the form.

brenda
Previous
Reply
Map
View

Click here to load this message in the networking platform