Print Page | Close Window

CXTPDockingPane::SetMinTrackSize()?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=13205
Printed Date: 23 June 2025 at 4:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPDockingPane::SetMinTrackSize()?
Posted By: cjrobindch
Subject: CXTPDockingPane::SetMinTrackSize()?
Date Posted: 19 January 2009 at 9:22am
Hi -

I have a docking pane set up and I'd like to define a minimum size.  CXTPDockingPane class has a SetMinTrackSize() function, but the member variables it touches aren't used anywhere.

Am I doing something wrong here, or is this unimplemented?



Replies:
Posted By: Oleg
Date Posted: 20 January 2009 at 2:50am
Hi,
Did you try set it ? Try temporary comment load state from previous layout - maybe it override your settings.


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


Posted By: cjrobindch
Date Posted: 20 January 2009 at 9:27am
After some experimentation with the order of operations, I now have hte following code which works correctly:

    m_pPaneHandlers = m_kPaneManager.CreatePane(IPANE_HANDLERS, CRect(0, 0,200, 120), xtpPaneDockLeft);

    CXTPDockingPaneLayout layout(&m_kPaneManager);
    if (layout.Load(s_paneLayout))
        m_kPaneManager.SetLayout(&layout);
   
    m_pPaneHandlers = m_kPaneManager.FindPane(IPANE_HANDLERS);
    m_pPaneHandlers->SetMinTrackSize(CSize(363, 90));

Thanks for the suggestion!



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