20 |
*/ |
*/ |
21 |
|
|
22 |
|
|
23 |
/* |
/* |
24 |
* This is an example of the use of counters. |
* This is an example of the use of counters. |
25 |
* |
* |
26 |
* This file is part of xforms package |
* This file is part of xforms package |
27 |
* T.C. Zhao and M. Overmars |
* T.C. Zhao and M. Overmars |
28 |
*/ |
*/ |
29 |
|
|
30 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
74 |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
75 |
{ |
{ |
76 |
int i; |
int i; |
77 |
|
|
78 |
fl_initialize(&argc, argv, "FormDemo", 0, 0); |
fl_initialize(&argc, argv, "FormDemo", 0, 0); |
79 |
create_form_form(); |
create_form_form(); |
80 |
fl_set_object_color(result,FL_FREE_COL1,FL_FREE_COL1); |
fl_set_object_color(result,FL_FREE_COL1,FL_FREE_COL1); |
81 |
|
|
82 |
for (i=0; i<3; i++) |
for (i=0; i<3; i++) |
83 |
{ |
{ |
84 |
fl_set_counter_bounds(co[i],0.0,255.0); |
fl_set_counter_bounds(co[i],0.0,255.0); |