Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keep foucs on textbox ?
Message
 
 
À
09/04/2003 11:23:34
Stanley Yip
Shun Sang (technology) ltd Hong Kong
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00775522
Message ID:
00775525
Vues:
10
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform