Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select on entry??
Message
From
23/07/2007 13:01:13
 
 
To
21/07/2007 08:56:48
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01241224
Message ID:
01242874
Views:
17
>>>>>In the gotfocus you can add
>>>>>
>>>>>KEYBOARD '{HOME}'
>>>>>
>>>>>which will start them in the first position or
>>>>>
>>>>>KEYBOARD '{HOME}{SHIFT-END}'
>>>>>
>>>>>which will highlight the entire entry
>>>>>
>>>>>If you put it in the base class, it will work for all fields
>>>>>
>>>>>
>>>>>>My users are consistently using their mouse to navigate around the textboxes of a form. Often they will click into the middle of the control and begin typing only to have the cursor jump to the next field before they are finished typing. I have tried setting the Selectonentry to .T. and the MaxLength to 0 but this doesn't seem to help.
>>>>>>
>>>>>>Is there a fix for this other than training the user to navigate with the TAB key?
>>>>>>
>>>>>>Thanks
>>>>
>>>>That sounds like it might work.
>>>>Thanks
>>>
>>>That solution will not always work, adding this to gotfocus is a better solution:
>>>This.selstart=0
>>>this.sellength=1e8
>>
>>Got it!
>>Thanks
>
>You're welcome!

After looking at this a bit, why not just put these values in the property sheet? Also, in operation this code prevents the cursor from exiting and jumping to the next control but does not start the cursor in front of any existing values. (When entering the textbox via the mouse). It this the intent, or am I missing something else?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform