frame left over by hidden panes |
Post Reply |
Author | |
sphr
Newbie Joined: 22 February 2007 Location: Singapore Status: Offline Points: 4 |
Post Options
Thanks(0)
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) |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
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 |
|
sphr
Newbie Joined: 22 February 2007 Location: Singapore Status: Offline Points: 4 |
Post Options
Thanks(0)
|
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? |
|
sphr
Newbie Joined: 22 February 2007 Location: Singapore Status: Offline Points: 4 |
Post Options
Thanks(0)
|
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. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
|
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 |
|
sphr
Newbie Joined: 22 February 2007 Location: Singapore Status: Offline Points: 4 |
Post Options
Thanks(0)
|
thanks, I'll try it out and post feedback later.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |