ToolWindowLayoutData support SuspendLayout

Docking/MDI for Windows Forms Forum

Posted 7 years ago by Amyn Virani - Software Developer, MicroAutomation, Inc.
Version: 16.1.0330
Avatar

When we try to load the layout by setting the appropriate value for dockManager.ToolWindowLayoutData, it seems visually like as if all the ToolWindows are closed initially and then reopened based on the new Layout information which takes a few second. Is there a way that when a new layout is loaded, we could freeze the old layout screen or show a blank layout and once the layout is loaded in memory, the display could refresh. All we are trying to do is trying to make the transition between layout smooth.

Thanks.

Comments (1)

Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

My guess is that the process of altering the layout (changing which controls are in what) is stlll firing paint events while it happens.  You could try calling SuspendLayout on the host container control prior to the layout change and ResumeLayout after.  I'm not sure if that will help.  If it doesn't you could try hiding the host container (possibly showing something on top) and then show it again when it's done.


Actipro Software Support

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.