Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement