Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keep foucs on textbox ?
Message
 
 
To
09/04/2003 11:23:34
Stanley Yip
Shun Sang (technology) ltd Hong Kong
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00775522
Message ID:
00775525
Views:
11
>I want to keep the foucs on one textbox no matter the user key in any key.
>but I want the user to leave the focus if use a mouse the click on those button on the form .
>I have try to set the lostfocus event to nodefault .
>but it only can force to key foucs on that testbox.
>how can I capture the mouse click in order to left the textbox ?

Try
* LostFocus()
IF NOT MDOWN()
  NODEFAULT
ENDIF
* Or 
* Valid()
IF NOT MDOWN()
  RETURN 0
ENDIF
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform