By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,491 Members | 3,273 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,491 IT Pros & Developers. It's quick & easy.

capturing CmdKey input to floating windows from within the main form.

P: n/a
Hi,

I have an IDE style editor based on the WeifenLuo.WinFormsUI.Docking
code, wich I must say seems realy good.

Im trying to activate drop down menus and such from various
special command key such as the windows apps key,
and then do something like build up a context menu using
reflection and picking items in the chain of windows and parent windows
wich have a member with my custom ContextMenuAttribute with
the apropriate key setting. im already using the mouse right
key for something else. (its used to pan the 3d scene with mouse movement)

a quick skeleton test works fine, the main Form ProcessCmdKey function fires
when the
apps key is presed in any window and can build and display a short test
menu,
however when I make one of the windows floating this function in the main
form no longer
fires.

does anyone know how to intercept such events in one place so it captures
cmd key input from any window floating or not ?

Or maybe theres a better way to acheive what im doing ?

basically I want to be able apply an attribute to any member in a class
associated
with a window or its parent and have that item show up in a menu when
specified input occurs.
this might be a bool or an editbale type or another menu etc.

I cant very easily make all my window classes inherit a custom class
wich then inherits Control, as im using this windows from this library
wich have many layers before they inherit control.

I could modify the source but id rather not if neccesary.

Colin =^.^=
Jun 27 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.