Hi! Well, currently I can't think of a reason why your plan should not be suitable :) I guess the problem why it won't work has nothing to do with the hierarchy, but with the way you planned on implementing it. Try this: 1. Create a Frame class derived from wxFrame. 2. The frame class has 2 major objects -> 1 x wxScrolledWindow, n x wxCheckbox. 3. Create the objects so that the parent window of wxScrolledWindow is the frame, and the parent of each wxCheckbox is the wxScrolledWindow. 4. Create two wxBoxSizer(wxVERTICAL). 5. Add the checkboxes to one of the sizers. 6. Add the wxScrolledWindow to the other sizer. 7. Use something like myScrolledWindow->SetSizer( myCheckboxSizer ); 8. Use SetSizer(myScrolledWindow); for the frame.
Problem is that you don't "add" to the window, but to its sizer and then set the sizer for the window.
upCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |