set width of wxTreeCtrl in wxTreeBook

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
liuyug
Experienced Solver
Experienced Solver
Posts: 53
Joined: Wed Jul 09, 2008 4:32 am

set width of wxTreeCtrl in wxTreeBook

Post by liuyug »

Hi,

Anyone tell me how to set the width of wxTreeCtrl in wxTreeBook.

I have find the old topic , http://forums.wxwidgets.org/viewtopic.p ... wxtreebook , but no solution.

Thanks.
liuyug
Experienced Solver
Experienced Solver
Posts: 53
Joined: Wed Jul 09, 2008 4:32 am

Post by liuyug »

I find the solution by myself.

override GetControllerSize function and return your expected size.

wxSize wxBookCtrlBase::GetControllerSize() const
Post Reply