On 3 Mar 2007, at 15:22, Michael Sweet wrote:
> Use a separate menu bar widget for the help menu; group the two
> menu bars (in a Fl_Group widget), and make the left menu bar the
> resizable() widget in the parent group.
Yes, Mike's Fl_Group method pretty much nails it...
------------
# data file for the Fltk User Interface Designer (fluid)
version 1.0108
header_name {.h}
code_name {.cxx}
Function {} {open
} {
Fl_Window main_win {open
private xywh {369 227 550 395} type Double resizable visible
} {
Fl_Group {} {open
xywh {-3 0 563 21}
} {
Fl_Menu_Bar mb1 {open
xywh {-1 0 500 21} box THIN_UP_BOX resizable
} {
Submenu {} {
label {sub 1} open
xywh {0 0 70 21}
} {
MenuItem {} {
label item1
xywh {5 5 36 21}
}
}
Submenu {} {
label {sub 2} open
xywh {5 5 280 86}
} {
MenuItem {} {
label itemA
xywh {5 5 36 21}
}
}
}
Fl_Menu_Bar {} {open
xywh {498 0 55 21} box THIN_UP_BOX
} {
Submenu {} {
label help open
xywh {10 10 70 21}
} {
MenuItem {} {
label help1
xywh {10 10 36 21}
}
}
}
}
Fl_Button {} {
label Exit
callback {main_win->hide();}
private xywh {470 360 70 25}
}
Fl_Box {} {
label {Work Area} selected
xywh {25 25 510 322} box THIN_DOWN_BOX color 7 resizable
}
}
}
-------
Ian
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk