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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

dockingmanager adding controls at runtime

Thread ID:

Created:

Updated:

Platform:

Replies:

15596 Jun 23,2004 09:05 AM UTC Jul 6,2004 07:09 PM UTC WinForms 1
loading
Tags: Tools
Krijn Michiels
Asked On June 23, 2004 09:05 AM UTC

Hi, The DockingManager.LoadState routine only loads state for controls that have been registered through DockingManager.SetEnableDocking(control,True). When adding controls at runtime the dockingmanager needs to reload the state (only for the new control). But you have to set the docking enabled first. This is a (small) problem because executing SetEnableDocking, then loading the serialized state, will result in a minor screen flicker. For example : If Not Me.DockingManager1.GetEnableDocking(myListBox) Then dockingState = Syncfusion.Runtime.Serialization.AppStateSerializer.GetSingleton Me.DockingManager1.SetEnableDocking(myListBox, True) Me.DockingManager1.LoadDockState(dockingState, myListBox) End If Is there a solution ?

Administrator [Syncfusion]
Replied On July 6, 2004 07:09 PM UTC

Hi Krijn, Sorry for the delayed response. I was able to see the minor flicker that you have mentioned, but there is no way to avoid seeing that flicker. If the flicker is too visible, you can consider displaying a splash panel over the form while the docking manager updates the layout. This would make the form update process invisible to the user. Please let me know if you have any questions. Thanks. Best regards, Stephen. >Hi, > >The DockingManager.LoadState routine only loads state for controls that have been registered through DockingManager.SetEnableDocking(control,True). When adding controls at runtime the dockingmanager needs to reload the state (only for the new control). But you have to set the docking enabled first. This is a (small) problem because executing SetEnableDocking, then loading the serialized state, will result in a minor screen flicker. >For example : > > If Not Me.DockingManager1.GetEnableDocking(myListBox) Then > dockingState = Syncfusion.Runtime.Serialization.AppStateSerializer.GetSingleton > Me.DockingManager1.SetEnableDocking(myListBox, True) > Me.DockingManager1.LoadDockState(dockingState, myListBox) >End If > >Is there a solution ?

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

;