2 GEOS dialog box functions
4 ported to small C on 26.12.1999
5 by Maciej 'YTM/Alliance' Witkowiak
12 char __fastcall__ DoDlgBox(char *dboxstring);
13 char __fastcall__ RstrFrmDialogue(void);
15 /* These are custom, predefined dialog boxes, I'm sure you'll find them usable
16 Most of them show 2 lines of text */
18 char __fastcall__ DlgBoxYesNo(char *line1, char *line2);
19 char __fastcall__ DlgBoxOkCancel(char *line1, char *line2);
20 void __fastcall__ DlgBoxOk(char *line1, char *line2);
21 char __fastcall__ DlgBoxGetString(char *myString, char strLength,
22 char *line1, char *line2);
23 char __fastcall__ DlgBoxFileSelect(char *classtxt, char ftype,
26 /* Now the command string type */
28 typedef void dlgBoxStr;
30 /* and command string commands - macros */
32 #define DB_DEFPOS(pattern) (char)(DEF_DB_POS | (pattern))
33 #define DB_SETPOS(pattern,top,bot,left,right) \
34 (char)(SET_DB_POS | (pattern)), (char)(top), (char)(bot), \
35 (unsigned)(left), (unsigned)(right)
36 #define DB_ICON(i,x,y) (char)(i), (char)(x), (char)(y)
37 #define DB_TXTSTR(x,y,text) (char)DBTXTSTR, (char)(x), (char)(y), (text)
38 #define DB_VARSTR(x,y,ptr) (char)DBVARSTR, (char)(x), (char)(y), (char)(ptr)
39 #define DB_GETSTR(x,y,ptr,length) (char)DBGETSTRING, (char)(x), (char)(y), (char)(ptr), (char)(length)
40 #define DB_SYSOPV(ptr) (char)DBSYSOPV, (unsigned)(ptr)
41 #define DB_GRPHSTR(ptr) (char)DBGRPHSTR, (unsigned)(ptr)
42 #define DB_GETFILES(x,y) (char)DBGETFILES, (char)(x), (char)(y)
43 #define DB_OPVEC(ptr) (char)DBOPVEC, (unsigned)(ptr)
44 #define DB_USRICON(x,y,ptr) (char)DBUSRICON, (char)(x), (char)(y), (unsigned)(ptr)
45 #define DB_USRROUT(ptr) (char)DB_USR_ROUT, (unsigned)(ptr)
46 #define DB_END (char)NULL
49 part of constants below is used internally, but some are useful for macros above
52 /* icons for DB_ICON */
59 /* commands - internally used by command macros */
62 #define DBGETSTRING 13
68 #define DB_USR_ROUT 19
69 /* icons tabulation in standard window */
76 /* standard window size defaults */
78 #define DEF_DB_POS 0x80
80 #define DEF_DB_BOT 127
81 #define DEF_DB_LEFT 64
82 #define DEF_DB_RIGHT 255
83 /* text tabulation in standard window */
90 /* system icons size */
91 #define SYSDBI_HEIGHT 16
92 #define SYSDBI_WIDTH 6
93 /* dialogbox string offsets */
98 #define OFF_DB_RIGHT 5
99 #define OFF_DB_1STCMD 7