Clean up some inconsistencies in themes.
[ntk.git] / test / inactive.cxx
bloba71816d21f0945c92413ec6cbbc92b97ffdf84fa
1 // generated by Fast Light User Interface Designer (fluid) version 1.0300
3 #include "inactive.h"
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},
13 {0,0,0,0,0,0,0,0,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) {
25 Fl_Double_Window* w;
26 { Fl_Double_Window* o = new Fl_Double_Window(420, 369);
27 w = o;
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");
32 } // Fl_Button* o
33 { Fl_Light_Button* o = new Fl_Light_Button(50, 80, 105, 25, "light button");
34 o->value(1);
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");
40 o->type(102);
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");
46 o->type(102);
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");
52 o->type(102);
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");
58 o->type(102);
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
69 o->end();
70 } // Fl_Group* o
71 { Fl_Slider* o = new Fl_Slider(165, 50, 24, 205, "Fl_Slider");
72 o->value(0.5);
73 } // Fl_Slider* o
74 { Fl_Input* o = new Fl_Input(195, 50, 195, 30);
75 o->static_value("Fl_Input");
76 } // Fl_Input* o
77 { Fl_Menu_Button* o = new Fl_Menu_Button(245, 90, 130, 30, "menu");
78 o->menu(menu_menu);
79 } // Fl_Menu_Button* o
80 { Fl_Value_Output* o = new Fl_Value_Output(245, 130, 130, 30, "value:");
81 o->maximum(10000);
82 o->step(1);
83 o->textfont(5);
84 o->textsize(24);
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);
90 o->labelfont(3);
91 o->labelsize(38);
92 } // Fl_Box* o
93 { Fl_Scrollbar* o = new Fl_Scrollbar(40, 274, 180, 20, "scrollbar");
94 o->type(1);
95 } // Fl_Scrollbar* o
96 { new Fl_Roller(235, 230, 25, 65, "roller");
97 } // Fl_Roller* o
98 { new Fl_Dial(275, 235, 50, 50, "dial");
99 } // Fl_Dial* o
100 the_group->end();
101 Fl_Group::current()->resizable(the_group);
102 } // Fl_Group* the_group
103 { Fl_Button* o = new Fl_Button(25, 330, 185, 25, "active");
104 o->type(102);
105 o->value(1);
106 o->callback((Fl_Callback*)cb_active);
107 } // Fl_Button* o
108 { Fl_Button* o = new Fl_Button(220, 330, 180, 25, "inactive");
109 o->type(102);
110 o->callback((Fl_Callback*)cb_inactive);
111 } // Fl_Button* o
112 o->end();
113 } // Fl_Double_Window* o
114 w->show(argc, argv);
115 return Fl::run();