>
> It would probably be best to see a compilable example,
> complete with the xywh values you have for both groups,
> and the parent window.
>
> It would probably be best to see a compilable example,
> complete with the xywh values you have for both groups,
> and the parent window.
>
I thought I included one, albeit in 2 parts :)
Here goes again..
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Button.H>
#include <FL/Fl.H>
#include <FL/fl_ask.H>
class Inner : public Fl_Group {
public:
Inner(int x, int y, int w, int h, char const* label = 0)
: Fl_Group(x, y, w, h, label)
{
end();
align(FL_ALIGN_LEFT);
}
};
class Outer : public Fl_Group {
public:
Outer(int x, int y, int w, int h, char const* label = 0)
: Fl_Group(x, y, w, h)
, inner_(new Inner(x, y, w, h, label))
{
end();
}
private:
Inner* inner_;
};
void btn_cb(Fl_Widget*, void* v)
{
Fl_Double_Window* w = static_cast<Fl_Double_Window*>(v);
fl_alert("This is a Test");
}
int main()
{
Fl_Double_Window win(600, 200, "Testing");
new Outer(475, 40, 20, 20, "Your Message Here");
Fl_Button* btn = new Fl_Button(300, 10, 100, 20, "Push Me");
win.end();
btn->callback(btn_cb, &win);
win.show();
return Fl::run();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk