20 |
*/ |
*/ |
21 |
|
|
22 |
|
|
23 |
/* |
/* |
24 |
* Routines implementing the "crossbutton" class |
* Routines implementing the "crossbutton" class |
25 |
* |
* |
26 |
* ob->col1 is the color of the box. ob->col2 is the color of cross |
* ob->col1 is the color of the box. ob->col2 is the color of cross |
90 |
FL_Coord h, const char *label) |
FL_Coord h, const char *label) |
91 |
{ |
{ |
92 |
FL_OBJECT *ob; |
FL_OBJECT *ob; |
93 |
fl_add_button_class(FL_CROSSBUTTON, draw_crossbutton, 0); |
fl_add_button_class(FL_CROSSBUTTON, draw_crossbutton, 0); |
94 |
ob = fl_create_generic_button(FL_CROSSBUTTON, type, x, y,w, h, label); |
ob = fl_create_generic_button(FL_CROSSBUTTON, type, x, y,w, h, label); |
95 |
ob->boxtype = FL_NO_BOX; |
ob->boxtype = FL_NO_BOX; |
96 |
ob->col2 = FL_BLACK; /* cross color */ |
ob->col2 = FL_BLACK; /* cross color */ |