home *** CD-ROM | disk | FTP | other *** search
- typedef struct SEL{
- char *text;
- int start_col;
- int start_row;
- int sel_att; /* zero for default */
- int unsel_att; /* zero for default */
- int activate_key_1;
- int activate_key_2;
- int (*do_function)(); /* NULL if not used */
- char *exe_call; /* NULL if not used */
- int (*help_function)(); /* NULL if not used */
- int exit; /* exit menu after commmand - TRUE or FALSE */
- } SEL;
-
-
- typedef struct MENU {
- struct WNDW *menu_window;
- int default_non_select_att; /* same as fill attr */
- int default_cursor_att;
- int title_format;
- int window_title_att;
- char *window_title_text;
- int pcursor_type; /* 0==string len, 1==max strg len, 2== full window */
- int exit_key;
- int help_key;
- int (*menu_text)();
- int (*error_fn)();
- struct SEL *sel_list;
- int num_sel;
- } MENU;
-
- /* ---------------- files in menu.c ----------------------*/
- extern int menu(MENU *);
- extern void display_selections(MENU *);
- extern void pcursor(MENU *,int,int);
- extern void execute_help( MENU *, int);
- extern int execute_selection( MENU *, int);
- extern int init_menu(MENU *,int);
-
-