mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 03:15:21 +08:00
Make the GL printer menu in the cube demo look a little but tidier in
winXP (and I hope on X11 etc.) and alos hopefully without breaking it for OSX and the Fl_Sys_Menu_Bar... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7269 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+5
-4
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
#if !HAVE_GL
|
#if !HAVE_GL
|
||||||
class cube_box : public Fl_Box {
|
class cube_box : public Fl_Box {
|
||||||
public:
|
public:
|
||||||
double lasttime;
|
double lasttime;
|
||||||
int wire;
|
int wire;
|
||||||
double size;
|
double size;
|
||||||
@@ -175,7 +175,7 @@ void print_cb(Fl_Widget *w, void *data)
|
|||||||
printer.end_page();
|
printer.end_page();
|
||||||
printer.end_job();
|
printer.end_job();
|
||||||
}
|
}
|
||||||
// end of printing demo
|
// end of printing demo
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
makeform(argv[0]);
|
makeform(argv[0]);
|
||||||
@@ -188,10 +188,11 @@ int main(int argc, char **argv) {
|
|||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
Fl_Sys_Menu_Bar *menubar_;
|
Fl_Sys_Menu_Bar *menubar_;
|
||||||
menubar_ = new Fl_Sys_Menu_Bar(0, 0, 40, 25);
|
menubar_ = new Fl_Sys_Menu_Bar(0, 0, 60, 20);
|
||||||
|
menubar_->box(FL_FLAT_BOX);
|
||||||
menubar_->menu(items);
|
menubar_->menu(items);
|
||||||
form->end();
|
form->end();
|
||||||
// end of printing demo
|
// end of printing demo
|
||||||
speed->bounds(4,0);
|
speed->bounds(4,0);
|
||||||
speed->value(cube->speed = cube2->speed = 1.0);
|
speed->value(cube->speed = cube2->speed = 1.0);
|
||||||
size->bounds(4,0.01);
|
size->bounds(4,0.01);
|
||||||
|
|||||||
Reference in New Issue
Block a user