Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menubar 'ON BAR' triggered via keyboard or mouse click?
Message
De
04/04/2006 10:06:15
 
 
À
03/04/2006 20:50:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01110101
Message ID:
01110260
Vues:
15
Hi Malcolm

Sorry for the late reply <bg>

>
>Thanks for joining this thread!
>

No problem at all!

>
>I'm looking for a generic way for the procedure that's called via ...
>
>on selection bar ... do MYPROCEDURE
>
>... to determine if the ON SELECTION BAR was triggered via a mouse click or the menu bar's shortcut key.
>
>The reason I'm looking for this information is so I can log how users interface with a prototype I'm building so the trainers know which shortcut keys to emphasize and so the design team knows how users operate the product in 'real life'.
>

Oh... I think you have to bind these messages then.
1. WM_SYSCHAR for "ALT + character"
2. WM_KEYUP for other shortcut key, like "CTRL + char"

All you need to do is check the correct shortcut key, then give a flag something like:
lShortcutKey = .T.
Then on your procedure, simply check:
If lShortcutKey
   * activate by shortcut
   lShortcutKey = .F.
else
   * activate by mouse
endif
>BTW: Great to hear from you! How have you been? I've been busy trying to wrap up some projects that took a lot longer than expected. Now I'm back!
>

Yeah! Haven't heard any news from you for a while. I'm busy too lately. Two people offering me to join their bussinesses. Still don't know how it goes..hehe

>Thanks for your thoughts,
>

Don't mention it and glad to have you back :)
Regards
Herman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform