Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the last method when leaving a container?
Message
 
 
À
25/07/2008 08:25:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01333892
Message ID:
01334153
Vues:
11
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform