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
lShortcutKey = .F.
else
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