General information
Category:
Coding, syntax & commands
Hi Sergey,
I had the same problem. It's my comment in QueryUnload:
* When QueryUpload event is fired, the active control (oLastControl)
* has lost the focus already and you don't know what the control it was.
* If you do nothing in QueryUpload, then VFP returns focus to that control.
* But if you set focus to another control (lets assume it is MyExit button),
* VFP forgets to fire the LostFocus event for Containers where the last
* control is located. What is interesting, VFP knows, that these containers
* lost focus, and fires GotFocus event for them, when you press mouse on
* oLastControl.
* If you initiate KeyPress event in QueryUpload, then sometimes VFP sets focus
* to oLastCotrol and fires KeyPress (and it looks Ok), sometimes it doesn't
* set focus.
Regards,
Sergey
>Hi Koen,
>
>If the LostFocus() of the container doesn't fire then container didn't loose focus. Can you provide more details?
>
>>LostFocus() does not seem to get involved. Even a "set step on" in this method -> nothing at all
Previous
Next
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