I need to dynamically construct the items in a flatmenu’s submenu.
To do this I also need to intercept the event binding to the navigation menu with the keyboard.
I saw that there are events like EVT_FLAT_MENU_ITEM_MOUSE_OVER or EVT_FLAT_MENU_SELECTED but are related to the movement of the mouse.
For normal menus I would say to use the EVT_MENU_HIGHLIGHT event, which is fired whenever an item is highlighted, but I don't see any comparable event types in flatmenu after a quick look at the code. Perhaps if you dig into that module a bit you'll find a way to hook into similar behavior by overriding something in a derived class, or with a simple patch to the flat menu code.
···
On 6/17/11 2:05 AM, Fabio Spadaro wrote:
Hi all.
I need to dynamically construct the items in a flatmenu's submenu.
To do this I also need to intercept the event binding to the navigation
menu with the keyboard.
I saw that there are events like EVT_FLAT_MENU_ITEM_MOUSE_OVER or
EVT_FLAT_MENU_SELECTED but are related to the movement of the mouse.