> > here's how things stand:
> >
> > class MainWindow {
> > public:
> >   MainWindow();
> >   Fl_Window *mainWin;
> >   ...
>
> why not have the following?
>
> class MainWindow : public Fl_Double_Window {
> public:
>   MainWindow(int X, int Y, const char* T = 0)
>   : Fl_Double_Window(X, Y, T)
>   {
>     ...
>   }
>
> I typed that in off the top of my head, but you get the idea.
>
> D.

Can anybody suggest the main advantage of the above as opposed to my
original version, it's just that i thought i had access to the window
classes regardless of deriving from it in this way?

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to