Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mouse into field behaviour into date field
Message
De
28/09/2005 13:37:32
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Mouse into field behaviour into date field
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01054070
Message ID:
01054070
Vues:
61
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform