Print Page | Close Window

frame left over by hidden panes

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=6487
Printed Date: 12 December 2024 at 11:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: frame left over by hidden panes
Posted By: sphr
Subject: frame left over by hidden panes
Date Posted: 22 February 2007 at 7:09am
I created two panes and docked them to left of main frame with a tabbed client frame window.  When I hide the two panes via code (XTPDockingPane::Hide or XTPDockingPaneManager::HidePane), the hidden panes left behind something that looks like the frame border.  you can even get mouse events and pull it around (but it snaps back into original position after you release mouse).

Can anybody tell me how to get rid of them?  or is there any other functions I should call to make whichever manager object responsible to redraw/refresh/relayout so that the two unwanted border goes away?

attached screenshot ( the unwanted borders leftover from hiding the panes are circled in red)




Replies:
Posted By: mgampi
Date Posted: 27 February 2007 at 6:19pm
Hi;
did you get any reply to this issue?
I have the same problems with my docking panes and MDI tab client windows.


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: sphr
Date Posted: 27 February 2007 at 10:06pm
hi. unfortunately, no solutions yet.

I'm beginning to suspect it is the MDITabClient and MDIframeWnd related though.  Mainframe not updating it's layout and doing redraw correctly.  Getting lots of update errors.  (e.g. after adding pane, the mdi client is not refreshed/relayout properly no matter how I tried to call Refresh)

Can anybody point out how I can get an MDIFrameWnd to update it's layout correctly with relation to the Docking Panes?


Posted By: sphr
Date Posted: 27 February 2007 at 10:12pm
hi, just to add another observation(no pic).


The docking panes' position/sizing etc  seems to be correct.  It seems to be that MDI client area which is not updating.  sometimes I get white areas where nobody paints (my suspicion is that somehow, the frame wnd expects it to be painted by the panes but the panes have already docked themselves elsewhere?)

thanks.


Posted By: Oleg
Date Posted: 28 February 2007 at 1:44am
Hello,
 
Can you please patch
void CXTPTabClientWnd::CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType)
 
and comment
pWorkspace->UpdateWindow();
 
 
Redraw called before client size actually changed, think it was reason.
 
Thanks for help.


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


Posted By: mgampi
Date Posted: 28 February 2007 at 10:05am
Hi,
 
in my case it looks good! Thanks for your help...


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: sphr
Date Posted: 01 March 2007 at 12:28am
thanks, I'll try it out and post feedback later.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net