Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select contents of a text box when clicking on it.
Message
De
17/11/2004 16:25:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00962350
Message ID:
00962407
Vues:
7
Thanks

I used it in the mousedown method and changed this.sellenght to a fixed value.

>
this.SelStart = 0
>this.SelLength = len(transform(this.Value))
>nodefault
>in the MouseUp method should do that. The downside is that you overwrite the standard behavior of the mouse, i.e. won't be able to position the cursor with the mouse.
>
>
>>VFP 7,8, (and 9).
>>
>>In a form I have set the format ($R), imput mask (99,999.00), initial value (0.00). and set select on entry property to true.
>>
>>Currently text is selected (highlighted) only if I tab into the box (and contents are replaced when as soon I start typing in a new value). If I click on the text box the text is not highlighted and is current contents are displayed untill I leave the text box. How do I get clicking (and/or double clicking) the the text box to act the same as when I tab to it. I thought I could use use this.selectonentry=.T. but it does not appear to be a valid setting.
>>
>>Any suggestions appreciated.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform