Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trapping key press events
Message
 
À
29/05/2007 18:02:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01229175
Message ID:
01229206
Vues:
11
Hi greg,

>Unfortunately I've found that the keypress is completely ignores my alt key and instead just goes ahead uses the default behavior.

The order for processing key strokes is ON KEY LABEL, menus, KeyPress event. If you have a menu with the short cut, you can define an ON KEY LABEL for the same combination which has precedence. To retain the flow you should use KEYBOARD to simulate another key stroke and then query that key in the Key Press event. Otherwise you have to deal with the interrupting behavior of ON KEY LABEL.

The biggest drawback of ON KEY LABEL is that when the user presses the hot key, the current input control is validated, the cursor moved to the beginning and the entire text highlighted when SelectOnEntry is .T.
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform