Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent for 'Lostfocus' for a command group?
Message
From
20/07/1999 18:17:39
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00243262
Message ID:
00243886
Views:
22
Here's the problem...
got the class created, methods added and code running. It works in one direction only. i.e. if the user selects anything other than the commandgroup, the lostfocus event fires and does its bit.

However, I have a keypress trap for the PGDN key which sets focus to the 'Command1' button of the commandgroup. This too works. And correctly fires the command button's setfocus and sets the required variable back on and refreshes the commandgroup. So far so good.

The trouble follows immediately. The code moves directly on without a pause to the button's lostfocus, which, as you suggested, fires the parent lostfocus and switches the damn variable back off again! Yet the command button is still visibly 'selected' and thus should not have lost focus.

It all happens so fast that, at first I thought the method wasn't working at all, but the debugger showed me the above sequence...

I'll post this as another thread because the original problem has been resolved by your suggestion but if you have got any ideas I'm all ears!

Thanks

Harry
Previous
Reply
Map
View

Click here to load this message in the networking platform