I have a class controlPanel : public wxPanel
.
Creating a dialog I just put a list of panels in a wxBoxSizer
in constructor.
controlPanel *cp[20];
for(int i=0; i<20; i++)
{
cp[i]=new controlPanel(this,true,"asd",i,i+1);
bSizer5->Add(cp[i],0, wxALL|wxEXPAND, 0 );
}
But I can not scroll up and down to see all panels. What should I do?
Also bSizer5
covers all other widgets, so bSizer5
is in top of all.