Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select on entry - textbox
Message
From
21/10/2010 11:39:33
 
 
To
21/10/2010 10:23:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01274694
Message ID:
01486524
Views:
89
>This is an older topic ... SelectOnEntry only works when you tab into an editbox, but not when you click on it.
>
>The suggestion for the Click event below does indeed select on entry ... but, once this occurs, I would like to have it so that the next and all subsequent clicks do not select anything. Is this possible?
>
>>>I cannot get the numeric values in a textbox in a grid to select on entry if instead of tabbing to the textbox, the user uses the mouse. I am sure I have seen the answer to this before, but can't come up with it. Of cource I have selectonentry set to .t.
>>>
>>>Thanks in advance to the worlds fastest problem solving community
>>>
>>>Fred
>>
>>
>>*Textbox::Click
>>this.SelStart = 0
>>this.SelLength = 50
>>
>>PS: 50 is an arbitrary value wide enough to cover all range, could be 999 or 9999 as well.
>>Cetin

Would it work for you to add a new property and do something like
*Textbox::Click
IF NOT this.lHasBeenClicked
    this.SelStart = 0
    this.SelLength = 50
    this.lHasBeenClicked = .T.
ENDIF
If you can't add a new property maybe you can use Tag.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform