本文整理汇总了C++中Fl_Double_Window::set_modal方法的典型用法代码示例。如果您正苦于以下问题:C++ Fl_Double_Window::set_modal方法的具体用法?C++ Fl_Double_Window::set_modal怎么用?C++ Fl_Double_Window::set_modal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fl_Double_Window
的用法示例。
在下文中一共展示了Fl_Double_Window::set_modal方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
parameter_window::parameter_window() {
Fl_Double_Window* w;
{ Fl_Double_Window* o = param_window = new Fl_Double_Window(391, 105, "Open Slice Parameter");
w = o;
o->user_data((void*)(this));
{ Fl_Value_Input* o = width = new Fl_Value_Input(55, 10, 50, 25, "X size :");
o->labeltype(FL_ENGRAVED_LABEL);
o->labelfont(8);
o->maximum(1000);
o->value(512);
o->when(FL_WHEN_RELEASE);
}
{ Fl_Value_Input* o = height = new Fl_Value_Input(55, 40, 50, 25, "Y size :");
o->labeltype(FL_ENGRAVED_LABEL);
o->labelfont(8);
o->maximum(1000);
o->value(512);
}
{ Fl_Value_Input* o = depth = new Fl_Value_Input(55, 70, 50, 25, "Z size :");
o->labeltype(FL_ENGRAVED_LABEL);
o->labelfont(8);
o->maximum(1000);
o->value(400);
}
{ Fl_Value_Input* o = sizeX = new Fl_Value_Input(170, 10, 50, 25, "Real X :");
o->labeltype(FL_ENGRAVED_LABEL);
o->labelfont(8);
o->maximum(100);
o->value(0.625);
}
{ Fl_Value_Input* o = sizeY = new Fl_Value_Input(170, 40, 50, 25, "Real Y :");
o->labeltype(FL_ENGRAVED_LABEL);
o->labelfont(8);
o->maximum(100);
o->value(0.625);
}
{ Fl_Value_Input* o = sizeZ = new Fl_Value_Input(170, 70, 50, 25, "Real Z :");
o->labeltype(FL_ENGRAVED_LABEL);
o->labelfont(8);
o->maximum(100);
o->value(1);
}
{ Fl_Value_Input* o = offset = new Fl_Value_Input(315, 10, 65, 25, "CT offset :");
o->labeltype(FL_ENGRAVED_LABEL);
o->labelfont(8);
o->minimum(-2000);
o->maximum(7999);
}
{ Fl_Return_Button* o = OK = new Fl_Return_Button(235, 60, 70, 35, "OK");
o->labelsize(16);
o->callback((Fl_Callback*)cb_OK);
}
{ Fl_Button* o = Cancel = new Fl_Button(310, 60, 70, 35, "Cancel");
o->labelsize(16);
o->callback((Fl_Callback*)cb_Cancel);
}
o->set_modal();
o->end();
}
val = -1;
}