new context menu Event

Cableguy

Expert
Licensed User
Longtime User
Erel, could you possible include the pop-up Event of the context menu..
it would be helpfull determining wich menu items to be made enable before showing the actual menu, as this event fires BEFORE the show...
 

DaveW

Active Member
Licensed User
Longtime User
Erel,

I don't want to be a nag, but this is a very interesting suggestion. I was happily working on my programs interface when I was amazed to find that there is no click event for the top level menu items! I am really not sure how I am going to set the enabled states of the items now :-(

Perhaps this could be done with Door.dll?

:signOops:Answered my own question - it can be done with dzEventMagic

dzem.New1("frmMain", False)
dzem.Hook(279)

279 is WM_INITMENUPOPUP
dzem.lParam returns a digit 1 = first item, 2 = second, etc.
 
Last edited:
Top