Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ALT key and MouseDown Event
Message
 
À
01/08/2002 09:11:48
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00684778
Message ID:
00684932
Vues:
12
>Hi Caroline,
>
>I gave your suggestion a try but it didn't help me. It appears that the menu item is highlighted after I release the ALT key. So in the MouseDown() event, all code runs correctly until I release the ALT key. I put CLEAR TYPEAHEAD as the last command in the MouseDown() event but the menu item still highlights (and gets focus).
>
>As an aside, I checked into the VFP6.0 help for a form's KeyPress() Event. The event takes two parameters - nKeyCode, nShiftAltCtrl. The second parameter, according to the help is supposed to indicate the modifier keys SHIFT, CTRL and ALT. In the very last sentence, it says, "The KeyPress event does not occur for any combination of keys with the ALT key." It does not say this anywhere in the help for the MouseDown() event!
>
>Thanks for trying to help.
>
>Mike.
Mike,

The only other places I can think of to try would be the keypress as you suggested, try something like setting a Form property to indicate that this was from the MouseDown() and if thats set then in the keypress do a nodefault to ignore the key.

On second thought I guess that the menu select may take precedence so how about in the MouseUp() if the Alt was used in the MouseDown() sending another Alt to the keyboard, that way the Menu would just flash quickly.

Sorry I can't be of more help.
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform