can any one tell me how i can capture CTRL+SHIFT + a right mouse on a menu
item...

specifically in our security design, we have enabled the CTRL+SHIFT+Right
Mouse Click to add a form or a control into the security structure so access
can be defined for it....

rather than have to manually create entries, i would also like to capture
the CTRL+SHIFT+Right Mouse Click when their on a menu to add the menu item
into the security mix....

any ideas? suggestions?

Re: Capturing Right Clicks on a Menu by Dan

Dan
Tue Oct 31 10:28:52 CST 2006

This will be a tough one, and not foolproof. The VFP menu system lives
completely outside both the object model and the event model.

BUT every menu item calls a program, so in the first lines of that program
you can make API calls to check key status on those keys, I suppose. But as
I say it's going to be hit-or-miss whether you get to that code before the
keys are released or not.

Generally speaking, when designing a system one sticks to things that are
known to work rather than plucking non-standard behaviors out of the air and
then looking to implement them. <s>

There is U/I precedence for this, I suppose. There's a keystroke in Word
that makes entire menus go walkies. It's the cause of a huge number of posts
in the Word newsgroups from people who don't know how they lost the menu and
just want it back. ;-)

Dan

CJ wrote:
> can any one tell me how i can capture CTRL+SHIFT + a right mouse on a
> menu item...
>
> specifically in our security design, we have enabled the
> CTRL+SHIFT+Right Mouse Click to add a form or a control into the
> security structure so access can be defined for it....
>
> rather than have to manually create entries, i would also like to
> capture the CTRL+SHIFT+Right Mouse Click when their on a menu to add
> the menu item into the security mix....
>
> any ideas? suggestions?



Re: Capturing Right Clicks on a Menu by CJ

CJ
Wed Nov 01 06:11:09 CST 2006

i know the menu is its own animal so to speak... but i would imagine there
must be some way to hook into it. Windows API? Event Binding? Anyone?