Hi
I'm trying to save and load an UltraDockManager's layout. My issue is that it needs panes to have a control but I don't create them until a tab is selected. That's to make the form appear more quickly instead of waiting to create all of the tabs' forms.
Is there a way around this?
Regards
John
Hi Boris
I hope this explanation makes it clearer.
On loading the form, I create DockableControlPanes without a control and all of the other group panes, dock areas, etc. Then in the PaneDisplayed event, I identify the current grid's record and what form to show, create the appropriate form and add it to the control pane. This allows me to show a grid of records from different transport types but show transport-specific forms and create the forms just in time to make it load faster.
I want to load a layout to let the user reset the layout after undocking some tabs, resizing them, etc. I was saving the layout when the form is closed but if there are 5 tabs and the user has clicked on tabs 1 and 2 only, it doesn't show tabs 3-5 after loading the layout. It'd also be a problem if the layout was for sea cargo but the form is currently showing air cargo. I think I'd have to save layouts for all combinatins of tabs and variant forms.
My current idea is to reset the form manually, e.g. resize the form and dock areas, dock any floating panes, clear panes from dock areas then add them back in the right order.
Hi John,
I have read your post several times and I am still not sure what is your scenario. When are you trying to save and load the layout? What do you have on loading of the form?
I will be waiting for your feedback.