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:
00426206
Views:
22
>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.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform