Trying to have widget placement in ctor be based on current group. But
placement is always in relation to the window. Is this possible? See
code
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Button.H>
using namespace std;
int main(int argc, char **argv) {
Fl_Window *window = new Fl_Window(400,400);
window->begin();
Fl_Group* g1 = new Fl_Group(100,100,200,200); // want any widgets
placed in g1 to be in relation to 100,100
window->end();
g1->begin();
Fl_Button *b1 = new Fl_Button(75,75,50,50); // 75,75 is in
relation to window not group g1
g1->end();
window->show(argc, argv);
return Fl::run();
}
--
Robert Arkiletian
Eric Hamber Secondary, Vancouver, Canada
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk