Roman Burkovsky wrote:
> Would be cool to have Fl_Double_Window(x,y,w,h, label) constructor
> available through FLUID. Today there is only Fl_Double_Window(w,h, label).
If this is regarding developing child widgets based on Fl_Double_Window,
you can do this by making the widget with an Fl_Group, but setting the
class
to Fl_Double_Window:
1 New->Code->Function/method
2 New->Code->Window (makes parent window)
3 New->Code->Group.. (makes child group)
hit F1, click C++ tab,
and set Class: Fl_Double_Window (makes child group ->
child window)
Resulting code:
---
Fl_Double_Window* make_window() {
Fl_Double_Window* w;
{ Fl_Double_Window* o = new Fl_Double_Window(360, 330);
w = o;
{ Fl_Double_Window* o = new Fl_Double_Window(15, 20, 270, 230); // <--
o->box(FL_NO_BOX);
o->color(FL_BACKGROUND_COLOR);
o->selection_color(FL_BACKGROUND_COLOR);
---
This is nice in that it lets you base any fluid built-in widget
on either your own or other fltk widgets.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk