Charles Hartman wrote:
I'm still a bit puzzled by how this works. In my app meta-A (cmd-A on Mac, ctrl-A on Windows) is bound to a menu item while that item is enabled. When the menu item is disabled, I want to be able to bind (trap) meta-A so that it *doesn't* do its usual job (select all). But when I try putting the code for this in my StyledTextCtrl subclass (it's in the STC that the selection etc happens), it looks like I'm not trapping the key. Other combinations, not bound to any menu item, get through OK and can be blocked, skipped, whatever.
So the question is, if a key-comb is bound to a menu item, does it get unbound -- is the message allowed to propagate, I guess is what I mean -- when the menu item is disabled?
No, I think that the accelerator is always active.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!