We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Docking Manager ''Perspectives''

Thread ID:

Created:

Updated:

Platform:

Replies:

46684 Jul 18,2006 12:39 PM Jul 19,2006 07:50 PM Windows Forms 3
loading
Tags: Tools
David Hayes
Asked On July 18, 2006 12:39 PM

Hi, I have a requirement to implement multiple ''perspectives'' (layouts) that the user can switch between. Each layout will have different controls in different positions. Is there a recomended way of implementing this? My plan was to use Load/Save state in conjuction with SetEnableDocking. What sequence of calls would I need to switch from one persective to another? Regards David Hayes

Joy K George [Syncfusion]
Replied On July 18, 2006 02:23 PM

this
Hi David, If you need to switch between different layouts with different controls,You should ensure that there present all the controls in dockinglayout before loading the Dockstate using the LoadDockState method. This should be the sequence. 1.EnableDocking for controls which are present in the docklayout which is going to be loaded. 2.Load the layout using the LoadDockState method. You could also save the information about the controls in the same dockstate stream.So it will be easy to create controls before loading the dock state.Please refer knowledge base article for more information. Please let me know,if you need more information. Regards, Joy

David Hayes
Replied On July 18, 2006 03:53 PM

Hi, Thanks for your quick response. Just to clarify the sequence should be: 1. Create controls. 2. Enable docking with mDockingManager.DockControl or SetEnableDocking (what is the difference between these, do you have to call DockControl the first time?) 3. Load the saved dock state What happens to a control when SetEnableDocking(myControl, false) is called? Do I need to make it invisible or is it removed from the host control?

Joy K George [Syncfusion]
Replied On July 19, 2006 07:50 PM

Hi David,

You may use either SetEnableDocking or DockControl method.The purpose is to make the control docked in the docking layout.In other words the control should in control of dockingmanager before you load the dockstate.

There is no need to make the control invisible or removed from the HostControl.

Regards,
Joy

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;