Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP60- SelStart and SelLength
Message
 
À
27/06/2000 10:36:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00385038
Message ID:
00385051
Vues:
12
That's actually correct behaviour - using SelLength simulates the mouse selection so using the mouse to enter the field will override this.

>It doesn't work if you have something typed in the textbox and you use your mouse. The cursor remains where you clicked.
>
>
>>I've just tested and it works. This.SelStart=0 and This.SelLength=1 will select the first character of the text.
>>
>>>Anybody in here know how to use these two properties (SelStart and SelLength) to select position 1 on a textbox?
>>>
>>>I have issue a simple THIS.SELSTART = 0 in the GOTFOCUS event of the text box but this doesn't work.
>>>
>>>Thank you in advance.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform