Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Key Label Plus and Minus buttons
Message
De
06/05/2002 18:51:24
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00653251
Message ID:
00653314
Vues:
23
This message has been marked as a message which has helped to the initial question of the thread.
>Is there a way to capture when the user presses the plus and minus keys. I looked at the help for on key label and it does not list the plus and minus button.

Simply - don't. Don't use On Key Label. Just do a search here on the subject, and you'll find a lot of reasons not to use that.

If you need to use something like that in your control, use control's keypress method. Keep in mind that plus and minus keys are by default active while entering dates; user can press either to increase or decrease the value by one day. While most of the users aren't aware of this, I wouldn't recommend overriding this behavior, because the ones who are used may get really ticked off if this behavior changes on them.

So, the question I hate - what do you want to do? There are ways and ways, so the collective (pardon the pun) mind of UT will surely give you at least three ("in VFP, it can be done at least three ways, or it can't be done at all, or is not worth doing").

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
Répondre
Fil
Voir

Click here to load this message in the networking platform