#include #include #include #include #include #include #include #include #include "menus.h" int help_menu; MENUDEF my_menus[3]; extern Display *display; extern int tfBell,TipsFlag; extern int DCURY,DCURX,CURY_OFF; extern GC gc; Window make_unmapped_window(); flash(num) int num; { } add_menu(base,j,n,names,key,hint) Window base; char **names,*key,**hint; int j,n; { Window w; int i; Cursor cursor; cursor=XCreateFontCursor(display,XC_hand2); w=make_unmapped_window(base,0,DCURY+DCURY+6,16*DCURX,21*(DCURY+2)+2,1); my_menus[j].base=w; XDefineCursor(display,w,cursor); my_menus[j].names=names; my_menus[j].n=n; my_menus[j].hints=hint; strcpy(my_menus[j].key,key); my_menus[j].title=make_unmapped_window(w,0,0,16*DCURX,DCURY,1); for(i=0;i