A menu is a widget that contains a collection of items arranged in a column. If a menu is tied to a menuButton, it behaves a a pull-down menu; i.e, they are activated by pressing the mouse button 1 over a menu button; If a menu is tied to a mouse button, it will behave like a popup menu.
To create a menu, use EZ_CreateWidget
with type
EZ_WIDGET_MENU
and parent NULL
or use the
next function.
EZ_Widget *EZ_CreateMenu(char *title)
EZ_Widget *EZ_CreatePopupMenu(char *title)
These pair of functions behave exactly the same. They create a menu widget, a frame with possibly a title to hold menu items.