Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SelStart has no effect in ctextboxl instance
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00796422
Message ID:
00796424
Vues:
8
Hi again.

Forgot to mention that I've set oItemCode.SelectOnEntry to .F., yet the behavior is what you'd expect with it set to .T. When the field gets focus (it's TabOrder is 1, so it is initially in focus), the text is all selected. That's what I mean by "no effect."

Dan

>Hi all.
>
>I want to position the text entry cursor at the end of a prefilled string in a textbox. This works fine with the textbox base class, but not with ctextboxl. My code snippet is as follows, where oItemCode is the instance of ctextboxl:
>
>With Thisform
> If .lAddMode or Empty(.oItemCode.TextBox.Value)
> .oItemCode.TextBox.Value = v_vendor.VendNr
> .oItemCode.TextBox.SelStart = len(.oItemCode.TextBox.Value)
> Endif .lAddMode or ...
>Endwith
>
>Clues, anyone?
>
>Dan
Daniel Lauer
The Country Sampler Store
danl@sampler.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform