Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SelLength / SelStart Property VFP 3.0
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00224979
Message ID:
00225724
Views:
22
Edgar,

Do you mean Editbox? What is probably biting you on your attempts is the automatic call to the Editbox BaseClass behavior at the end of your overridden code. VFP is undoing your setting of the Sel* properties. Do this instead:

*GotFocus method
EditBox::GotFocus() && do the baseclass behavior now
nodefault && prevent automatic call
this.SelStart = 1
this.SelLength = len( this.Value )


>Thanks - but that property is not available to a textbox.
>
>I think maybe I'll find the equivalant to SHIFT-END key-send on got-fucus!?!
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform