You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
4.2KB

  1. // generated by Fast Light User Interface Designer (fluid) version 1.0300
  2. #include "inactive.h"
  3. Fl_Group *the_group=(Fl_Group *)0;
  4. Fl_Menu_Item menu_menu[] = {
  5. {"item", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
  6. {"item", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
  7. {"item", 0, 0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
  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. {0,0,0,0,0,0,0,0,0}
  11. };
  12. static void cb_active(Fl_Button*, void*) {
  13. the_group->activate();
  14. }
  15. static void cb_inactive(Fl_Button*, void*) {
  16. the_group->deactivate();
  17. }
  18. int main(int argc, char **argv) {
  19. Fl_Double_Window* w;
  20. { Fl_Double_Window* o = new Fl_Double_Window(420, 369);
  21. w = o;
  22. { the_group = new Fl_Group(25, 25, 375, 295, "activate()/deactivate() called on this Fl_Group");
  23. the_group->box(FL_ENGRAVED_FRAME);
  24. the_group->align(Fl_Align(FL_ALIGN_TOP|FL_ALIGN_INSIDE));
  25. { new Fl_Button(50, 50, 105, 25, "button");
  26. } // Fl_Button* o
  27. { Fl_Light_Button* o = new Fl_Light_Button(50, 80, 105, 25, "light button");
  28. o->value(1);
  29. o->align(Fl_Align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE));
  30. } // Fl_Light_Button* o
  31. { Fl_Group* o = new Fl_Group(50, 130, 105, 125, "Child group");
  32. o->box(FL_DOWN_FRAME);
  33. { Fl_Check_Button* o = new Fl_Check_Button(50, 170, 105, 25, "red");
  34. o->type(102);
  35. o->down_box(FL_DIAMOND_DOWN_BOX);
  36. o->selection_color((Fl_Color)1);
  37. o->labelcolor((Fl_Color)1);
  38. } // Fl_Check_Button* o
  39. { Fl_Check_Button* o = new Fl_Check_Button(50, 190, 105, 25, "green");
  40. o->type(102);
  41. o->down_box(FL_DIAMOND_DOWN_BOX);
  42. o->selection_color((Fl_Color)2);
  43. o->labelcolor((Fl_Color)2);
  44. } // Fl_Check_Button* o
  45. { Fl_Check_Button* o = new Fl_Check_Button(50, 210, 105, 25, "blue");
  46. o->type(102);
  47. o->down_box(FL_DIAMOND_DOWN_BOX);
  48. o->selection_color((Fl_Color)4);
  49. o->labelcolor((Fl_Color)4);
  50. } // Fl_Check_Button* o
  51. { Fl_Check_Button* o = new Fl_Check_Button(50, 230, 105, 25, "white");
  52. o->type(102);
  53. o->down_box(FL_DIAMOND_DOWN_BOX);
  54. o->selection_color((Fl_Color)55);
  55. o->labelcolor((Fl_Color)55);
  56. } // Fl_Check_Button* o
  57. { Fl_Check_Button* o = new Fl_Check_Button(50, 130, 105, 25, "check");
  58. o->down_box(FL_DOWN_BOX);
  59. } // Fl_Check_Button* o
  60. { Fl_Round_Button* o = new Fl_Round_Button(50, 150, 105, 25, "round");
  61. o->down_box(FL_ROUND_DOWN_BOX);
  62. } // Fl_Round_Button* o
  63. o->end();
  64. } // Fl_Group* o
  65. { Fl_Slider* o = new Fl_Slider(165, 50, 24, 205, "Fl_Slider");
  66. o->value(0.5);
  67. } // Fl_Slider* o
  68. { Fl_Input* o = new Fl_Input(195, 50, 195, 30);
  69. o->static_value("Fl_Input");
  70. } // Fl_Input* o
  71. { Fl_Menu_Button* o = new Fl_Menu_Button(245, 90, 130, 30, "menu");
  72. o->menu(menu_menu);
  73. } // Fl_Menu_Button* o
  74. { Fl_Value_Output* o = new Fl_Value_Output(245, 130, 130, 30, "value:");
  75. o->maximum(10000);
  76. o->step(1);
  77. o->textfont(5);
  78. o->textsize(24);
  79. o->textcolor((Fl_Color)4);
  80. } // Fl_Value_Output* o
  81. { Fl_Box* o = new Fl_Box(245, 170, 140, 50, "Fl_Box");
  82. o->box(FL_EMBOSSED_FRAME);
  83. o->labeltype(FL_SHADOW_LABEL);
  84. o->labelfont(3);
  85. o->labelsize(38);
  86. } // Fl_Box* o
  87. { Fl_Scrollbar* o = new Fl_Scrollbar(40, 274, 180, 20, "scrollbar");
  88. o->type(1);
  89. } // Fl_Scrollbar* o
  90. { new Fl_Roller(235, 230, 25, 65, "roller");
  91. } // Fl_Roller* o
  92. { new Fl_Dial(275, 235, 50, 50, "dial");
  93. } // Fl_Dial* o
  94. the_group->end();
  95. Fl_Group::current()->resizable(the_group);
  96. } // Fl_Group* the_group
  97. { Fl_Button* o = new Fl_Button(25, 330, 185, 25, "active");
  98. o->type(102);
  99. o->value(1);
  100. o->callback((Fl_Callback*)cb_active);
  101. } // Fl_Button* o
  102. { Fl_Button* o = new Fl_Button(220, 330, 180, 25, "inactive");
  103. o->type(102);
  104. o->callback((Fl_Callback*)cb_inactive);
  105. } // Fl_Button* o
  106. o->end();
  107. } // Fl_Double_Window* o
  108. w->show(argc, argv);
  109. return Fl::run();
  110. }