From: David R. <DR...@kn...> - 2002-02-27 20:12:52
|
i have a splitter contained within a splitter, much like the wxPerl demo = where the window is split vertically and the right pane split = horizontally. i am trying to build mine from an external XML = representation: <splitter type=3D"vert" size=3D"150" style=3D"0"> <pane name=3D"LeftPane"> <page name=3D"LeftPage" /> </pane> <pane name=3D"RightPane"> <splitter type=3D"horz" size=3D"150" style=3D"0"> <pane name=3D"TopPane"> <page name=3D"TopPage" /> </pane> <pane name=3D"BottomPane"> <page name=3D"BottomPage" /> </pane> </splitter> </pane> </splitter> The problem is to do with calling either SplitHorizontally() or = SplitVertically(). Because the data structure is nested, i split the = right pane horizontally before i split the main window vertically. It = appears that splitting vertically is causing the horizontal split size = to be lost. The same can be demonstrated in the wxPerl demo but changing = the order of the split calls (lines 226/227). Obviously, in the demo, = you can choose the order, but in a nested data structure as above, the = approach is one of completely rendering the child splitter before going = back to the parent. Any ideas appreciated. /dave |