Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select on entry - textbox
Message
De
11/12/2007 08:46:35
 
 
À
10/12/2007 23:57:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01274694
Message ID:
01274751
Vues:
36
>I cannot get the numeric values in a textbox in a grid to select on entry if instead of tabbing to the textbox, the user uses the mouse. I am sure I have seen the answer to this before, but can't come up with it. Of cource I have selectonentry set to .t.
>
>Thanks in advance to the worlds fastest problem solving community
>
>Fred

This works for me, got it from somewhere:

* Textbox GotFocus
If This.SelectOnEntry
Nodefault
TextBox::GotFocus()
Endif


It has the advantage that on first click, it selects all the text, on the second click, it places the cursor where the user clicked.

Carlos
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform