Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Position cursor inside am Editbox
Message
De
19/09/2000 14:21:12
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00418109
Message ID:
00418185
Vues:
31
>>Add a custom property to your editbox superclass - something like nRealSelStart - default to -1.
>
>Trey,
>
>Why do you have to do that? I just tested and using .selstart works fine for me. Am I missing something?
>
>If a put the following in a button on a form Thisform.MyEdit.SelStart = 4. Type 10 characters in the edit box, click the button, then tab back to the edit box, the cursor is in the 4th position.

It works for me, too, but Fransisco indicated that simply setting SelStart was not working for him, so I suggested he try this to get around it.
You know, I forgot to even ask if the edit box was empty to begin with....
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform