Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to select textbox when mousing in
Message
De
05/11/2003 15:36:39
 
 
À
05/11/2003 15:29:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00846750
Message ID:
00846762
Vues:
20
>>If you have a textbox set up to select upon entry, and then click into that textbox with your mouse, the textbox loses its highlight and the cursor positions to the column in the textbox where you clicked. Is there any way to have the textbox work the same way with a mouse click in it as it does if you tabbed into it? I want it to select the entire length of the textbox and be ready for input from the left side, replacing any data in it with what I type in.
>>
>>Jim White
>
>You can put this in the Click of the TextBox:
>
>this.SelStart = 0
>this.SelLength=LEN(ALLTRIM(this.Value))
>
The problem with putting it in the Click() is that you can't ever click to a selected position in the text box. It's better in the GotFocus()

Alan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform