Print Page | Close Window

Docking pane resize

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=10808
Printed Date: 24 April 2024 at 7:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Docking pane resize
Posted By: terminator_123
Subject: Docking pane resize
Date Posted: 28 May 2008 at 11:14am

Hi all,

I'm trying to resize a docking pane by using the following code that I found in other forum threads.


    int wid = 650;
    m_pPane->SetMinTrackSize(CSize(wid, 0));
    m_pPane->SetMaxTrackSize(CSize(wid, rc.Height()));
    m_PaneManager.RecalcFramesLayout();
    m_PaneManager.NormalizeSplitters();
    m_pPane->SetMinTrackSize(CSize(32, 0));
    m_pPane->SetMaxTrackSize(CSize(32567, 32567));
    m_PaneManager.ShowPane(m_pPane);


This works fine and the pane is resized but after doing this, I can't resize the docking pane from the user interface by dragging the splitter .
Is there a way to both set the size from code as well as retain the ability to change size with the splitter ?

Thanks,
Pavan




Replies:
Posted By: Oleg
Date Posted: 28 May 2008 at 1:53pm
Hi,
 
try to  replace to
m_pPane->SetMinTrackSize(CSize(0, 0));


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


Posted By: terminator_123
Date Posted: 30 May 2008 at 12:29am
Thanks Oleg.
It was a mistake in another part of my own code that causes the problem. I have corrected it.
Sorry for the trouble.



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