General information
Category:
Forms & Form designer
Title:
Mouse into field behaviour into date field
Environment versions
Network:
Windows 2000 Server
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only