Print Page | Close Window

Do I have to keep reissuing RecalcLayout?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=18652
Printed Date: 15 October 2018 at 3:35pm


Topic: Do I have to keep reissuing RecalcLayout?
Posted By: stuc
Subject: Do I have to keep reissuing RecalcLayout?
Date Posted: 13 July 2011 at 4:20am


I have a picturebox along the top of the screen with several docking windows underneath (mdi).

Inside of dockingpaneManager_GetclientBordersWidth() I have  a Top = menustrip.height

This works perfectly.

The problem I have is if I do a msgbox() after the ok is clicked the panes ignore the getclientborders and disappear under the picturebox along the top of the window.

Im finding that I have to issue a RecalcLayout() after the mgsbox command,  which works but its not very elegant on screen(screen flickers on redraw)

Is there a work around or am I doing something wrong ?


Bit more info:
DockingPaneManager.RedrawPanes can also be used to redraw the screen but it still flickers.



/Stu



Replies:
Posted By: Oleg
Date Posted: 14 July 2011 at 1:28am
Hi,

Please attach sample that show such problem.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window