]> git.sur5r.net Git - cc65/blob - samples/geos/dialog.c
Added GEOS Kernal call showing what the struct is for - like the other fragment-type...
[cc65] / samples / geos / dialog.c
1 /* Note: 
2  * This is just a sample piece of code that shows how to use some structs -
3  * it may not even run.
4  */
5
6
7 #include <geos.h>
8
9 void sysopvfunc (void);
10 void opvecfunc (void);
11 void usrfunc (void);
12
13 static const dlgBoxStr myDialog = {
14         DB_SETPOS (1, 0,150,0,319),
15         DB_TXTSTR (10,20,"test"),
16         DB_VARSTR (10,20,&r0L),
17         DB_GETSTR (10,20,&r0L,9),
18         DB_SYSOPV (sysopvfunc),
19         DB_GRPHSTR (&r0L),
20         DB_GETFILES (10,10),
21         DB_OPVEC (opvecfunc),
22         DB_USRICON (0,0,&r0L),
23         DB_USRROUT (usrfunc),
24         DB_ICON (OK, DBI_X_0, DBI_Y_0 ),
25         DB_ICON (CANCEL, DBI_X_1, DBI_Y_1),
26         DB_END
27         };
28
29 void main (void)
30 {
31     DoDlgBox (&myDialog);
32     }