Pull-down menu
Pull-down menu
VERTICAL_MENU - to position the menu vertically
HIDE_DISABLED_ITEMS - to hide the disabled items
__Items - linked list of menu items:
struct MenuItem {
char *Text;
char *KeyText;
int Key, Command;
unsigned Value;
XtWindow *ChildWindow;
MenuItem *Child, *Parent;
MenuItem *Next;
};
This list can be constructed using the following 2 functions:
MenuItem *NewMenuItem(char *__Text, char *__KeyText, int __Key, int __Command, MenuItem *__Child, MenuItem *__ANextItem) which builds the entire list, and:
MenuItem *NewLine(MenuItem *__ANextItem) which builds a line separator