Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to setfocus back to previous text box
Message
From
21/10/2004 10:40:47
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
20/10/2004 23:51:03
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00952191
Message ID:
00953299
Views:
14
OBJNUM() relied on knowing which control you are using. You can do the same with object and setfocus(). I suggested bindevent() so you can do all this without having to add code to all of your classes. In my framework, I have code in all my base classes lostfocus() event to save the oLastActiveControl so I can set the focus back to a control after a save or cancel.


>>Hee Lim,
>>
>>If you are using vfp8 you can use bindevent() to do this.
>>
>>>Thanks !
>>>Is there any way to apply all controls in the form but don't have to write coding in all the controls ?
>
>You used to be able to do it very easily in FPW2.6
>
>If you are using FPW2.6 _CUROBJ=OBJNUM(m.object)-1 or +1
>
>With the advent of VFP we have gone backwards in that dept.
Previous
Reply
Map
View

Click here to load this message in the networking platform