"Dunny" <paul.dunn1@[EMAIL PROTECTED]
> wrote in message
news:GPjRj.93157$4f4.21715@[EMAIL PROTECTED]
> My problem is that the mainmenu's keyboard shortcuts are not firing,
> unless I first press the alt key, or use another menu item (after which,
> they all work).
Found it!
I'm setting the enabled/disabled state (for, say, the "Undo" item) in the
OnEnterMenuLoop() procedure. This of course is only called when the menu
is
displayed, not when a menu item's shortcut is intercepted and the OnClick
handler is executed. Hence, stuff that is disabled stays that way and
logically ignores shortcuts until the menu is displayed.
Shame the menu handler itself didn't call the OnEnterMenuLoop handler
prior
to deciding if a menu item is disabled or not. Though I daresay it doesn't
work that way :)
D.
D.


|