本文整理汇总了C++中Fl_Menu_Button::anim_flags方法的典型用法代码示例。如果您正苦于以下问题:C++ Fl_Menu_Button::anim_flags方法的具体用法?C++ Fl_Menu_Button::anim_flags怎么用?C++ Fl_Menu_Button::anim_flags使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fl_Menu_Button
的用法示例。
在下文中一共展示了Fl_Menu_Button::anim_flags方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
// Run browser
if (doRunBrowser) {
Fl_Group *g3 = new Fl_Group(0,0,100,20);
g3->box(FL_FLAT_BOX);
g3->layout_spacing(0);
g3->layout_align(FL_ALIGN_LEFT);
runBrowser = new Fl_Input_Browser("",100,FL_ALIGN_LEFT,30);
//runBrowser->image(run_pix);
runBrowser->box(FL_THIN_DOWN_BOX); // This is the only box type which works :(
// Added _ALWAYS so callback is in case:
// 1) select old command from input browser
// 2) press enter to execute. (this won't work w/o _ALWAYS)
// runBrowser->input()->when(FL_WHEN_ENTER_KEY_ALWAYS | FL_WHEN_RELEASE_ALWAYS);
// Vedran: HOWEVER, with _ALWAYS cb_run_app will be called way
// too many times, causing fork-attack
runBrowser->input()->when(FL_WHEN_ENTER_KEY);
runBrowser->input()->callback((Fl_Callback*)cb_run_app);
runBrowser->callback((Fl_Callback*)cb_run_app2);
g3->end();
g3->show();
g3->resizable();
v = new Fl_VertDivider(0, 0, 5, 18, "");
v->layout_align(FL_ALIGN_LEFT);
substract += 105;
}
// Popup menu for the whole taskbar
Fl_Menu_Button *mPopupPanelProp = new Fl_Menu_Button( 0, 0, W, 28 );
mPopupPanelProp->type( Fl_Menu_Button::POPUP3 );
mPopupPanelProp->anim_flags(Fl_Menu_::LEFT_TO_RIGHT);
mPopupPanelProp->anim_speed(0.8);
mPopupPanelProp->begin();
Fl_Item *mPanelSettings = new Fl_Item(_("Settings"));
mPanelSettings->x_offset(12);
mPanelSettings->callback( (Fl_Callback*)runUtility, (void*)"epanelconf" );
new Fl_Divider(10, 5);
Fl_Item *mAboutItem = new Fl_Item(_("About EDE..."));
mAboutItem->x_offset(12);
mAboutItem->callback( (Fl_Callback *)AboutDialog );
mPopupPanelProp->end();
// Taskbar...
tasks = new TaskBar();
// Dock and various entries...
dock = new Dock();
v = new Fl_VertDivider(0, 0, 5, 18, "");
v->layout_align(FL_ALIGN_RIGHT);
{
// MODEM
mModemLeds = new Fl_Group(0, 0, 25, 18);
mModemLeds->box(FL_FLAT_BOX);
mModemLeds->hide();
mLedIn = new Fl_Box(2, 5, 10, 10);
mLedIn->box( FL_OVAL_BOX );
mLedIn->color( (Fl_Color)968701184);
mLedOut = new Fl_Box(12, 5, 10, 10);