Hi,
I am playing again with FLTK...
I am doing a dialog box using group for layout.
I want a fixed height bottom line of fixed width (on resize) buttons.
I am using 4 groups.
So, my layout works fine but not my buttons (thanks for the tutorial). I
can not click on them (only sometime the first one).
Do anybody have an idea of what I am missing ?
Regards,
David
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Button.H>
int main()
{
Fl_Window win(50, 50, 300, 250, "Group Sample");
Fl_Group g1(0, 0, 300, 200);
g1.end();
Fl_Group g2(0, 200, 300, 50);
g2.box(FL_ENGRAVED_FRAME);
Fl_Group g21(0, 200, 50, 50);
Fl_Button b1(10, 212, 70, 25, "First Button");
Fl_Button b2(10+b1.x()+b1.w(), b1.y(), 70, 25, "Second");
Fl_Button b3(10+b2.x()+b2.w(), b1.y(), 70, 25, "A Third long button");
g21.end();
Fl_Group g22(50, 200, 200, 50);
g22.end();
g2.resizable(&g22);
g2.end();
win.resizable(&g1);
win.show();
return Fl::run();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk