1 /////////////////////////////////////////////////////////////////
3 // Pull-Down menu interface .H file
5 /////////////////////////////////////////////////////////////////
6 typedef struct { char *item_name;
12 typedef struct { int num_items;
17 typedef struct { int menux;
22 typedef struct { char *text;
26 typedef struct { char *text;
27 int width,height,numbuttons;
29 void (*hook)(int x,int y);
32 typedef struct { int x,y,w,h;
41 #define crtcaddr 0x3d4
48 extern struct ffblk f; // more info from GetPath
51 void extern InitDesktop(MBarDef *menubar,int initmouse);
52 void extern DeskEventLoop(void (*UserRoutine)(void),void (*ConstantRoutine)(void));
53 void extern ClearScreen(void);
54 void extern RedrawDesktop(void);
55 void extern SaveBackground(int x,int y,int w,int h);
56 void extern RestoreBackground(void);
57 int extern DoDialog(DialogDef *TheDialog);
58 void extern ErrDialog(char *string,char *bstring);
59 void extern DrawBorder(int x,int y,int w,int h,int b);
60 int extern CheckButtons(DialogDef *TheDialog);
61 int extern CheckButtonsRet(DialogDef *TheDialog);
62 void extern DrawDialog(DialogDef *TheDialog,int saveback);
63 void extern GetButtonXY(DialogDef *TheDialog,int button,unsigned *x,unsigned *y);
64 void extern GetDialogXY(DialogDef *TheDialog,unsigned *x,unsigned *y);
65 int extern CheckList(int x,int y,int w,int h,void (*oncode)(),void (*offcode)(),int blink);
66 int extern Message(char *mstring);
69 // RETURNS 0=OK,-1=NO FILES MATCH FILTER,-2=CANCELED
71 extern char NameList[MAXFDNAMES][13];
72 int GetPath(char *string,char *filter,char *path);
73 int GetList(char *string,int numnames);
75 static void FDon(int x,int y,int w);
76 static void FDoff(int x,int y,int w);
77 static void CancelOn(int x,int y);
78 static void CancelOff(int x,int y);