XA Online Documentation, Inside XA "xamenu.c"

xamenu.c

Source file xamenu.c

Comments

Widget make_item(char *name, enum item_names id, Boolean sensitive, Widget menu)

This procedure is called to create a menu item name, like Open or Display Data, for a menu top menu. Each item must have a specific identity number id and a truth value for its default "sensitive mode".

Widget make_menu(char *name, Widget bar)

Make_menu creates a menu top name, for example File or View, for a menu bar.

Widget make_help(char *name, Widget bar)

Make_help creates the menu top Help. Compared with make_menu, which provides (almost) the same functionality, the difference is that Help is placed at the right border of the menu bar.

void create_menus(Widget menubar)

This procedure which is called by xamain creates the menu bar for the XA application. New menu items can easily be added here without changing the main program.


[return to home page][return to Inside XA]
Reinhard Schaffner, © 1995-05-30