Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent for 'Lostfocus' for a command group?
Message
 
 
To
19/07/1999 15:23:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00243262
Message ID:
00243274
Views:
21
>I need to know when the user has switched from a commandgroup to another part of the form but there aint no 'lostfocus' event for commandgroups.
>
>How else can we intercept the user - without writing code into all the other possible 'gotfocus' events which is hugely unwieldy...
>
>Harry

You can add a custom method to the command group container called mLostFocus. Then in your command button class LostFocus you can add the code:
if upper(This.Parent.BaseClass) = "COMMANDGROUP"
   This.Parent.LostFocus
endif
As long as any command button you add to the group is of this class, the container LostFocus will be called each time a command button in the group loses focus.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform