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



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 =^.^=


.



Relevant Pages

  • Re: sending events asynchronously
    ... To my mind multi threading should be made as easy as adding a control, ... wich took a little while to grasp becuase its not so clear. ... problems to the unwary due to mfc window control classes in particular ... for as long as threads have been in Windows anyway). ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Authentification from a SAM base
    ... ComputerScience students on wich they upload their files and other things. ... authentification base SAM of a WindowsServer2003. ... Windows WMI and ADSI. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Authentication from a SAM base / ISS
    ... I've tried to use the "Windows" authentication and I denied access to ... ComputerScience students on wich they upload their files and other ... Windows WMI and ADSI. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: sending events asynchronously
    ... thread wich is how it would be done in the lower level languages ... but the old Win32 "event" still exists. ... AutoResetEvent class. ... yes I gues they are trying to hide the old unsafe windows type event. ...
    (microsoft.public.dotnet.languages.csharp)
  • sony network walkman(usb problem)
    ... I have an NW-MS7 sony digital music player, wich is only compatible ... It uses flash memoy cards(sony memory sticks) wich are ... the driver only works with windows, but OS X won't let the virtual pc ...
    (microsoft.public.mac.virtualpc)