wxTreeBook : resize tree control

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
bcteh
Experienced Solver
Experienced Solver
Posts: 72
Joined: Mon Nov 27, 2006 9:56 am

wxTreeBook : resize tree control

Post by bcteh » Tue Aug 21, 2007 3:05 am

Hi,

For wxTreeBook control, How to resize the
treectrl part to make it bigger size ?


I try for this, but the size remain same.
m_treebook = new wxTreebook(this,wxID_ANY);
wxSize size = m_treebook->GetTreeCtrl()->GetBestSize();
size.SetWidth(size.x + 250);
m_treebook->GetTreeCtrl()->SetMinSize(size);

Regards
Teh

Post Reply