Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to 'not' lose focus
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00425951
Message ID:
00426723
Views:
15
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform