Pawel:
>>> If it interests you to sketch up a rough guess in code that would be
>>> really good, because I am not completely sure I've got what you mean..

Me:
>> I've cobbled something together to give a flavour of what I meant. ...

Pawel:
> I see now that the little problem of not being able to add Window
> instances to a vector is not so little.  ...
> ... I'll just add my Fl_Window instances to an array (as I have in
> the mean-time).  If I have to waste some memory holding space for
> a few non instanciated objects (I only wanted to have a few at a
> time at the most) then so be it, because for me to understand what
> you did will require a good bit of effort on my part beyond what I
> can put in nowadays - to have a proper resizable Window container.

As you have found, you cannot have a vector<Fl_Window> because all
Fl_Window constructors take parameters, and there is no Fl_Window()
default constructor.

However, you can easily get round that limitation by simply storing
pointers, and using a vector<Fl_Window*> instead.

I think that I just misunderstood what you were trying to do, and
made it a lot more complicated than you probably need.

Cheers
D.


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

Reply via email to