Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SelStart and edit control
Message
 
À
14/04/1999 13:11:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00208285
Message ID:
00208485
Vues:
21
>Hello All
>Does anyone know when SelStart is being set for edit control ?
>TIA,
>Alex.

Alex,

I suppose you want your insertion point to be somewhere in the text after you pasted something into the memo. Here is a code fragment from the Click() of a command button that inserts a comment into an edit box and sets the selstart just after it.

REPLACE v_Donateur.mMemo WITH lcString + v_Donateur.mMemo
this.Parent.cEditBox1.Refresh()
this.Parent.cEditBox1.SetFocus()
this.Parent.cEditBox1.SelStart = LEN( lcString) -2

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

Click here to load this message in the networking platform