I'm trying to get a popup (context) menu item help message displayed
in the frame's status bar. Anyone have any idea how this might be
done? I looked into using the EVT_MENU_HIGHTLIGHT event, but it does
not seem to be fired from the menu or menu item.
This is a 'working' example. The statusbar is around line 56, and it displays
the hover. I'm still working on it, so it's the best I could show you
just now, but
the status update does work, so you can snippet from it.
···
On Fri, Sep 24, 2010 at 2:47 PM, Const <caleb.constantine@gmail.com> wrote:
wxPython Users:
I'm trying to get a popup (context) menu item help message displayed
in the frame's status bar. Anyone have any idea how this might be
done? I looked into using the EVT_MENU_HIGHTLIGHT event, but it does
not seem to be fired from the menu or menu item.
You might try binding it to the window that calls PopupMenu, I'm not sure but they might be delivered there. If not then it is probably a menubar- or frame-only event.
···
On 9/24/10 11:47 AM, Const wrote:
wxPython Users:
I'm trying to get a popup (context) menu item help message displayed
in the frame's status bar. Anyone have any idea how this might be
done? I looked into using the EVT_MENU_HIGHTLIGHT event, but it does
not seem to be fired from the menu or menu item.
No luck. I'm guessing it's a menubar- or frame-only event as you
suggested.
···
On Sep 24, 9:09 pm, Robin Dunn <ro...@alldunn.com> wrote:
You might try binding it to the window that calls PopupMenu, I'm not
sure but they might be delivered there. If not then it is probably a
menubar- or frame-only event.
You might try binding it to the window that calls PopupMenu, I'm not
sure but they might be delivered there. If not then it is probably a
menubar- or frame-only event.
No luck. I'm guessing it's a menubar- or frame-only event as you
suggested.
Not that it helps your issue but, yea it looks like (on the windows
port anyway) that only wxFrame has a WndProc handler for
WM_MENUSELECT. In MFC the owning window will be sent that message to
notify when a menu item is hovered over, so since there is no handler
for anything outside of wxFrame, the message wont be translated it to
a wx event when it is sent to other window types.
Cody
···
On Thu, Sep 30, 2010 at 10:38 AM, Const <caleb.constantine@gmail.com> wrote:
On Sep 24, 9:09 pm, Robin Dunn <ro...@alldunn.com> wrote: