> Can you show us your subclassed window and it's constructor?
// Code
class TargetWindow : public Window {
// inputGrid was a different subclassed type of Input
inputGrid* inbox;
Button* go;
Browser *textBrowser;
void buttonCallBack();
static void buttonCallBack(Widget*, void* v){
((TargetWindow*)v)->buttonCallBack();
}
inline void windowCallBack(TargetWindow* v) const {
v->hide();
}
static void windowCallBack(Widget*, void* v) {
((TargetWindow*)v)->windowCallBack((TargetWindow*)v);
}
public:
TargetWindow(const char* label) : Window(USEDEFAULT, USEDEFAULT, 720, 300,
label, true)
{
inbox = new inputGrid(330, 20, 90, 90);
go = new Button(470, 50, 150, 25, "Generate words!");
textBrowser = new Browser(150, 130, 470, 120, "Valid words:");
go->callback(buttonCallBack, this);
callback(windowCallBack, this);
resizable(textBrowser);
end();
}
};
//Endcode.
The box is as generic as it gets, which is why i cant work this out. unless
having the constructor as part of the window's constructor does something it's
not supposed to...?
Ben
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk