Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the last method when leaving a container?
Message
 
 
To
25/07/2008 08:25:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01333892
Message ID:
01334153
Views:
10
Hi Sergey,

Thanks for the info.

>
>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
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform