![]() |
Create Layout Dynamically |
Post Reply ![]() |
Author | |
thodgson ![]() Groupie ![]() Joined: 11 August 2003 Status: Offline Points: 78 |
![]() ![]() ![]() ![]() ![]() Posted: 08 December 2003 at 2:42pm |
Using the Pane Sample from the Xtreme Toolkit Pro 8.6, there are two layouts "editor" and "run". As far as I can tell, these two layouts are pre-packaged and not created on the fly. What's the best way to create layouts on the fly, instead of loading them from the registry or file. I want to do it progromatically, but am running into some issues: If I load a layout, then call the DockPane method, I get an error. Anyone have a good example of accomplishing this?
Thanks, Tim Edited by thodgson |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
They are not predefined. Comment GetDockingPaneManager()->SetLayout(m_pEditorLayout); and you will see it yourself. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
thodgson ![]() Groupie ![]() Joined: 11 August 2003 Status: Offline Points: 78 |
![]() ![]() ![]() ![]() ![]() |
After some digging and experimenting, I now see how the layouts are done. One has to create the layouts by moving the panes to the desired location, then save the current position as a layout. Then, when the program is loaded a second time, the layouts can be loaded from the registry/file/xml and not created from scratch again. I originally was creating the layouts on the fly each time the program was loaded, and I was trying to save the last layout. When I reran the program, I could load the last layout, but the program crashed whenever I tried to move the panes around dynamically - with DockPane or Hide, etc. Just wish there was some documentation on this Tim |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |