wxTreeBook

22 views
Skip to first unread message

Mark Erbaugh

unread,
Nov 19, 2009, 4:35:59 PM11/19/09
to wx-u...@googlegroups.com
I have a frame (MDI Child) with wxTreeBook control. The pages of the control are panels containing a wxCheckListBox control. The purpose of the wxTreeBook is to allow the user to assign different team members (the wxCheckListBox items) to different roles (the wxTreeBook pages). The different pages have the same items in the wxCheckListBox as all the team members are eligible for all the roles.

In the sample application, there are 10 roles (wxTreeBook pages). I have one team with seven members (wxCheckListBox items). For that team, things display properly. The wxTreeBook is sized to display all the roles. The wxCheckListBox shows all seven items, with some extra white space at the bottom.

However, I have another team with ten roles, but only six members. For this team the display is shorter, truncating part way through the 10th option. The wxTreeBook display spills over to the right, running through the gap and into the wxCheckListBox. There is no vertical scrollbar. If I resize the frame taller, the display corrects itself. If I then resize the display back to the original height, the vertical scrollbar appears and the display looks okay.

This is with wxWidgets 2.8.10 on Windows XP.

Actually, I would prefer to use a wxListBook rather than the wxTreeBook as there is no hierarchical structure, but when I do, the wxListBook part is narrow wrapping each role's text into three or four lines. I have no graphics associated with the roles.

Thanks,
Mark

Reply all
Reply to author
Forward
0 new messages