Profile Picture

Setting Docking panel width

Posted By Ian Hammond 14 Years Ago
Author
Message
Ian Hammond
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 11, Visits: 1

My app displays a number of docking panels which the user can change either the width or the height. I would like to save the size information when the app closes and restore the panels to the saved size on startup. I can't seem to find which parameters I should be saving or which size parameters I should be writing to.

Can anyone advise,

many thanks

 



Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Ian,

You can do that using NDockingFrameworkState class.

In order to save and load panels correctly you need to set their Key and Text properties with unique values.

After the initialization of NDockingFrameworkState member you need to set its Manager property to the manager that you want to persist. Also you can specify the persistency format that you want to use by setting PersistencyFormat property of the docking framework state to the desired value.

Then all you need is to call one of the Save overloads when the form is closing and respectively Load when the form is loading.

You can also check the following topic in our online documentation for more info:

http://help.nevron.com/dotnetvision/UsersGuide_DockingPanels_Layout_Presistency.html



Best Regards,
Nevron Support Team



Ian Hammond
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)Junior Member (11 reputation)

Group: Forum Members
Last Active: 13 Years Ago
Posts: 11, Visits: 1
Thanks for that, now sorted.



Similar Topics


Reading This Topic