1 // generated by Fast Light User Interface Designer (fluid) version 1.0300
5 Fl_Group
*the_group
=(Fl_Group
*)0;
7 Fl_Menu_Item menu_menu
[] = {
8 {"item", 0, 0, 0, 0, FL_NORMAL_LABEL
, 0, 14, 0},
9 {"item", 0, 0, 0, 0, FL_NORMAL_LABEL
, 0, 14, 0},
10 {"item", 0, 0, 0, 0, FL_NORMAL_LABEL
, 0, 14, 0},
11 {"item", 0, 0, 0, 0, FL_NORMAL_LABEL
, 0, 14, 0},
12 {"item", 0, 0, 0, 0, FL_NORMAL_LABEL
, 0, 14, 0},
16 static void cb_active(Fl_Button
*, void*) {
17 the_group
->activate();
20 static void cb_inactive(Fl_Button
*, void*) {
21 the_group
->deactivate();
24 int main(int argc
, char **argv
) {
26 { Fl_Double_Window
* o
= new Fl_Double_Window(420, 369);
28 { the_group
= new Fl_Group(25, 25, 375, 295, "activate()/deactivate() called on this Fl_Group");
29 the_group
->box(FL_ENGRAVED_FRAME
);
30 the_group
->align(Fl_Align(FL_ALIGN_TOP
|FL_ALIGN_INSIDE
));
31 { new Fl_Button(50, 50, 105, 25, "button");
33 { Fl_Light_Button
* o
= new Fl_Light_Button(50, 80, 105, 25, "light button");
35 o
->align(Fl_Align(FL_ALIGN_CENTER
|FL_ALIGN_INSIDE
));
36 } // Fl_Light_Button* o
37 { Fl_Group
* o
= new Fl_Group(50, 130, 105, 125, "Child group");
38 o
->box(FL_DOWN_FRAME
);
39 { Fl_Check_Button
* o
= new Fl_Check_Button(50, 170, 105, 25, "red");
41 o
->down_box(FL_DIAMOND_DOWN_BOX
);
42 o
->selection_color((Fl_Color
)1);
43 o
->labelcolor((Fl_Color
)1);
44 } // Fl_Check_Button* o
45 { Fl_Check_Button
* o
= new Fl_Check_Button(50, 190, 105, 25, "green");
47 o
->down_box(FL_DIAMOND_DOWN_BOX
);
48 o
->selection_color((Fl_Color
)2);
49 o
->labelcolor((Fl_Color
)2);
50 } // Fl_Check_Button* o
51 { Fl_Check_Button
* o
= new Fl_Check_Button(50, 210, 105, 25, "blue");
53 o
->down_box(FL_DIAMOND_DOWN_BOX
);
54 o
->selection_color((Fl_Color
)4);
55 o
->labelcolor((Fl_Color
)4);
56 } // Fl_Check_Button* o
57 { Fl_Check_Button
* o
= new Fl_Check_Button(50, 230, 105, 25, "white");
59 o
->down_box(FL_DIAMOND_DOWN_BOX
);
60 o
->selection_color((Fl_Color
)55);
61 o
->labelcolor((Fl_Color
)55);
62 } // Fl_Check_Button* o
63 { Fl_Check_Button
* o
= new Fl_Check_Button(50, 130, 105, 25, "check");
64 o
->down_box(FL_DOWN_BOX
);
65 } // Fl_Check_Button* o
66 { Fl_Round_Button
* o
= new Fl_Round_Button(50, 150, 105, 25, "round");
67 o
->down_box(FL_ROUND_DOWN_BOX
);
68 } // Fl_Round_Button* o
71 { Fl_Slider
* o
= new Fl_Slider(165, 50, 24, 205, "Fl_Slider");
74 { Fl_Input
* o
= new Fl_Input(195, 50, 195, 30);
75 o
->static_value("Fl_Input");
77 { Fl_Menu_Button
* o
= new Fl_Menu_Button(245, 90, 130, 30, "menu");
79 } // Fl_Menu_Button* o
80 { Fl_Value_Output
* o
= new Fl_Value_Output(245, 130, 130, 30, "value:");
85 o
->textcolor((Fl_Color
)4);
86 } // Fl_Value_Output* o
87 { Fl_Box
* o
= new Fl_Box(245, 170, 140, 50, "Fl_Box");
88 o
->box(FL_EMBOSSED_FRAME
);
89 o
->labeltype(FL_SHADOW_LABEL
);
93 { Fl_Scrollbar
* o
= new Fl_Scrollbar(40, 274, 180, 20, "scrollbar");
96 { new Fl_Roller(235, 230, 25, 65, "roller");
98 { new Fl_Dial(275, 235, 50, 50, "dial");
101 Fl_Group::current()->resizable(the_group
);
102 } // Fl_Group* the_group
103 { Fl_Button
* o
= new Fl_Button(25, 330, 185, 25, "active");
106 o
->callback((Fl_Callback
*)cb_active
);
108 { Fl_Button
* o
= new Fl_Button(220, 330, 180, 25, "inactive");
110 o
->callback((Fl_Callback
*)cb_inactive
);
113 } // Fl_Double_Window* o