Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select contents of a text box when clicking on it.
Message
 
To
17/11/2004 15:11:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00962350
Message ID:
00962395
Views:
9
this.SelStart = 0
this.SelLength = len(transform(this.Value))
nodefault
in the MouseUp method should do that. The downside is that you overwrite the standard behavior of the mouse, i.e. won't be able to position the cursor with the mouse.


>VFP 7,8, (and 9).
>
>In a form I have set the format ($R), imput mask (99,999.00), initial value (0.00). and set select on entry property to true.
>
>Currently text is selected (highlighted) only if I tab into the box (and contents are replaced when as soon I start typing in a new value). If I click on the text box the text is not highlighted and is current contents are displayed untill I leave the text box. How do I get clicking (and/or double clicking) the the text box to act the same as when I tab to it. I thought I could use use this.selectonentry=.T. but it does not appear to be a valid setting.
>
>Any suggestions appreciated.
Doru
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform