471,310 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

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


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
however when I make one of the windows floating this function in the main
form no longer

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
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
0 1167

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by jerrygarciuh | last post: by
10 posts views Thread by Andrew | last post: by
reply views Thread by pat.maher | last post: by
3 posts views Thread by MLM450 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.