General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only