Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouse into field behaviour into date field
Message
From
28/09/2005 13:44:19
 
 
To
28/09/2005 13:37:32
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01054070
Message ID:
01054078
Views:
18
This message has been marked as the solution to the initial question of the thread.
>Hi Everyone,
>
>Just wondering if this behaviour has changed after VFP7 (and if not, then I need to make it work):
>
>1) on a textbox field that is meant for character data, if it is empty and the user clicks into the box - anywhere in the box - the cursor goes to the start of the field; this is good as it prevents users from having spaces at the start of the field after entering text
>
>2) but if the textbox is a date field, the cursor does not jump to the start of the field; it instead "stays" wherever the user clicked it; users often would complain about this so I wrote code that fires on the MouseUp event that compares the cursor position when clicked to where it is within the box and if it is beyond the first character position (a rough calculation), then I keyboard {Home} and the cursor goes to the start of the field. Works 99.9% of the time and so users bug me much less about it.
>
>Has the behaviour in #1 been changed so that it works the same for date fields without having to have my funky code?
>
>I need to know because I have not worked out the code for all situations i.e. it does not work (at the moment) if the textbox is within a container and if it has not changed, I need to work up all possible scenarios.
>
>Thanks,
>
>Albert Gostick

try this:
* Mousedown
NODEFAULT
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform