20 |
*/ |
*/ |
21 |
|
|
22 |
|
|
23 |
/* |
/* |
24 |
* demo showing the effect of different border widths |
* demo showing the effect of different border widths |
25 |
* |
* |
26 |
* This file is part of xforms packge |
* This file is part of xforms packge |
27 |
* T.C. Zhao and M. Overmars (1997) |
* T.C. Zhao and M. Overmars (1997) |
68 |
int bw = bws[fl_get_choice(ob)-1]; |
int bw = bws[fl_get_choice(ob)-1]; |
69 |
|
|
70 |
fl_set_object_bw(fd_bwform->bwgroup, bw); |
fl_set_object_bw(fd_bwform->bwgroup, bw); |
71 |
/* since bwgroup includes the backface, it wipes out the done button*/ |
/* since bwgroup includes the backface, it wipes out the done button*/ |
72 |
fl_redraw_object(fd_bwform->done); |
fl_redraw_object(fd_bwform->done); |
73 |
fl_redraw_object(fd_bwform->bw_choice); |
fl_redraw_object(fd_bwform->bw_choice); |
74 |
} |
} |
78 |
{ |
{ |
79 |
|
|
80 |
/* application default. Can be overriden by the command line options */ |
/* application default. Can be overriden by the command line options */ |
81 |
fl_set_border_width(-2); |
fl_set_border_width(-2); |
82 |
|
|
83 |
fl_initialize(&argc, argv, "FormDemo", 0, 0); |
fl_initialize(&argc, argv, "FormDemo", 0, 0); |
84 |
fd_bwform = create_form_bwform(); |
fd_bwform = create_form_bwform(); |