Re: help on array of widgets

Probably the original poster needs to explain what purpose he is trying
to achieve in storing widgets in a vector. There is probably a
> fundamental design error present.

Hi Chris,

What I had in mind is like GIMP's Layer Dock where, a layer can be added, removed and rearranged. To keep my learning simple, I experimented with Buttons first. What I opted to do is a vector of Buttons, which failed obviously. So with Yann's suggestion, I'm currently using vector of Button pointers instead.

Do you have any better design in mind?


Mj Mendoza IV,
Developer, KonsolScript

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]