Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does GetFldState() return 2 for memo fields
Message
De
17/01/2008 15:21:44
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Firebird
Divers
Thread ID:
01282378
Message ID:
01282778
Vues:
9
>Hi Hilmar
>
>>ENTER will add a new line. The "correct" key to go from one field to the next is TAB / Shift-TAB.
>
>Yes, but the trend here is Enter to go to the next field.

That trend started to go out of fashion in the nineties, on Macs and Ataris and other GUIs, where all of a sudden there was no data entry at all. It became a matter of religion - if you enter your data, you'll be damned with a Form.Close() and cmdDefault.Click() befalling you. Now if you tabbed your data, everything was fine (except that you wanted to use your left hand for something else, for instance to keep a finger on where you are reading from - well, tough luck, you need to press Tab after every field). Your data were blessed with salvation (form.save()).

There's a heretical way out of your conundrum:
* editbox.keypress
...
case nKeyCode=13
   nodefault
   dodefault(9,0)
...
Not quite sure the dodefault with different parameters will work the same as if user pressed Tab, but if that fails, you can always go the dirty old way of Keyboard "{tab}".

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform