Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to 'not' lose focus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00425951
Message ID:
00426723
Vues:
14
Vlad, thanks for your reply.


I suspected I might have to do something like this but was looking for an 'EASY'way out.

Thanks

Gerard




>>I have a screen and one of the fields allows a 'Search' screen to be called in.
>>
>>This has a no. of side effects which I am trying to avoid.:-
>> e.g. The minute I call the Search Screen, my control' Lost Focus fires,my Pageactivate fires when it comes back from search, and the Got Focus fires again. I dont really want these (any probably others that I am not aware of) firing, just because I do a search.
>>
>>Is there a neat way arounf this ?
>
> Yep.
> Define form property, for example, lFlagSearchLaunch. In the control set it to .T. Than, in all other places that are called during your form search working, check this flag and do nothing when it is .T. Set flag back to .F. ate the last event occured after search form closed, so other events will work again.
>
> HTH.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform