Duncan, what you first suggested works fine, as per the below. I was just
being an amatuar and had missed something obvious.
// code
class App : public Fl_Window {
..
public:
App(int w, int h, const char* name=0) : Fl_Window(w, h, name) {
...
show ();
}
};
vector<App*> apps;
int main (int argc, char ** argv) {
apps.push_back( new App(400, 400, "app") );
return(Fl::run());
}
// code ends
regards,
Pawel
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk