本文整理汇总了C++中Fl_Check_Button::selection_color方法的典型用法代码示例。如果您正苦于以下问题:C++ Fl_Check_Button::selection_color方法的具体用法?C++ Fl_Check_Button::selection_color怎么用?C++ Fl_Check_Button::selection_color使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fl_Check_Button
的用法示例。
在下文中一共展示了Fl_Check_Button::selection_color方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Fl_Box
edisplayconf::edisplayconf() {
Fl_Window* w;
{Fl_Window* o = win = new Fl_Window(265, 335, _("Display configuration"));
w = o;
o->callback((Fl_Callback*)cb_win, (void*)(this));
{Fl_Tabs* o = new Fl_Tabs(5, 5, 255, 285);
{Fl_Group* o = group_mouse = new Fl_Group(0, 20, 255, 265, _("Mouse"));
o->align(FL_ALIGN_LEFT);
{Fl_Value_Slider* o = slider_accel = new Fl_Value_Slider(25, 25, 220, 18, _("Acceleration"));
o->type(Fl_Value_Slider::HORIZONTAL);
o->maximum(10);
o->step(1);
o->value(2);
o->align(FL_ALIGN_TOP);
}
{Fl_Value_Slider* o = slider_thresh = new Fl_Value_Slider(25, 65, 220, 18, _("Threshold (pixels)"));
o->type(Fl_Value_Slider::HORIZONTAL);
o->maximum(20);
o->step(1);
o->value(4);
o->align(FL_ALIGN_TOP);
}
o->end();
}
{Fl_Group* o = group_bell = new Fl_Group(0, 20, 255, 265, _("Bell"));
o->hide();
{Fl_Value_Slider* o = slider_volume = new Fl_Value_Slider(25, 25, 220, 18, _("Volume in %"));
o->type(Fl_Value_Slider::HORIZONTAL);
o->maximum(100);
o->step(1);
o->value(50);
o->align(FL_ALIGN_TOP);
}
{Fl_Value_Slider* o = slider_pitch = new Fl_Value_Slider(25, 70, 220, 18, _("Pitch in Hz"));
o->type(Fl_Value_Slider::HORIZONTAL);
o->minimum(100);
o->maximum(1000);
o->step(1);
o->value(440);
o->align(FL_ALIGN_TOP);
}
{Fl_Value_Slider* o = slider_duration = new Fl_Value_Slider(25, 115, 220, 18, _("Duration in ms"));
o->type(Fl_Value_Slider::HORIZONTAL);
o->maximum(1000);
o->step(1);
o->value(200);
o->align(FL_ALIGN_TOP);
}
{Fl_Button* o = new Fl_Button(180, 165, 60, 25, _("Test"));
o->callback((Fl_Callback*)cb_Test);
}
o->end();
}
{Fl_Group* o = group_keyboard = new Fl_Group(0, 20, 255, 265, _("Keyboard"));
o->align(FL_ALIGN_TOP | FL_ALIGN_LEFT);
o->hide();
{Fl_Check_Button* o = check_autorepeat = new Fl_Check_Button(24, 25, 221, 20, _(" Repeat key activated"));
o->selection_color((Fl_Color)2);
o->value(1);
}
{Fl_Value_Slider* o = slider_click = new Fl_Value_Slider(25, 65, 220, 18, _("Click volume %"));
o->type(Fl_Value_Slider::HORIZONTAL);
o->maximum(100);
o->step(1);
o->value(50);
o->align(FL_ALIGN_TOP);
}
o->end();
}
{Fl_Group* o = group_screen = new Fl_Group(0, 20, 255, 265, _("Screen"));
o->hide();
{Fl_Button* o = but_activate = new Fl_Button(165, 187, 80, 25, _("&Test"));
o->callback((Fl_Callback*)cb_but_activate);
}
new Fl_Box(10, 1, 234, 55);
{Fl_Value_Slider* o = slider_delay = new Fl_Value_Slider(25, 77, 220, 18, _("Activation delay (min)"));
o->type(Fl_Value_Slider::HORIZONTAL);
o->minimum(5);
o->maximum(120);
o->step(1);
o->value(15);
o->align(FL_ALIGN_TOP);
}
{Fl_Check_Button* o = check_blanking = new Fl_Check_Button(23, 25, 222, 20, _(" Screen blanker activated"));
o->selection_color((Fl_Color)2);
o->value(1);
}
new Fl_Box(10, 100, 234, 37);
{Fl_Value_Slider* o = slider_pattern = new Fl_Value_Slider(25, 152, 220, 18, _("Pattern change delay (min)"));
o->type(Fl_Value_Slider::HORIZONTAL);
o->minimum(1);
o->maximum(5);
o->step(0);
o->value(2);
o->align(FL_ALIGN_TOP);
o->deactivate();
}
{Fl_Group* o = new Fl_Group(30, 105, 210, 25);
{Fl_Round_Button* o = radio_blank = new Fl_Round_Button(0, 5, 105, 20, _("Blank"));
o->type(Fl_Round_Button::RADIO);
//.........这里部分代码省略.........