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.
Syncfusion Feedback

SaveDockState does not save size or position of HostForm

Thread ID:

Created:

Updated:

Platform:

Replies:

91863 Dec 7,2009 05:18 PM UTC Dec 8,2009 12:36 PM UTC Windows Forms 1
loading
Tags: Tools
Ben Held
Asked On December 7, 2009 05:18 PM UTC

Using C++/CLI. Is there any way to have my mainframe class (the hostform) size and position saved/restored as part of the Save/Load DockState calls?

The code that allocates/inits the dock manager:

m_pDockingManager = (gcnew Syncfusion::Windows::Forms::Tools::DockingManager(this->components));
m_pDockingManager->BeginInit();
m_pDockingManager->HostForm = this;
m_pDockingManager->ThemesEnabled=true;
m_pDockingManager->AllowTabsMoving = true;
m_pDockingManager->AnimationStep = 2;
m_pDockingManager->VisualStyle = Syncfusion::Windows::Forms::VisualStyle::Office2007;
m_pDockingManager->PersistState = true;
m_pDockingManager->EnableContextMenu = true;
m_pDockingManager->EnableAutoHideTabContextMenu = true;
m_pDockingManager->MenuButtonEnabled = true;
m_pDockingManager->MaximizeButtonEnabled = true;
m_pDockingManager->CloseEnabled = true;
m_pDockingManager->DockControlActivated += gcnew Syncfusion::Windows::Forms::Tools::DockActivationChangedEventHandler(this, &mainframe::ActiveDocumentChanged);
m_pDockingManager->EndInit();

Dhivya K [Syncfusion]
Replied On December 8, 2009 12:36 PM UTC

Hi Ben,

Save and Load DockState Calls only serialize and deserialize control's docking state information. It doesn't stores the controls size and position. However, this can be performed by serializing form Bounds and retrieve/deserialize them manually and position the form as per available serialized information.

Can you please create a DT incident if you have more queries on this?

Regards,
Dhivya.

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.

Warning Icon 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.Close Icon

;