Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPDockingPane::SetMinTrackSize()?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPDockingPane::SetMinTrackSize()?

 Post Reply Post Reply
Author
Message
cjrobindch View Drop Down
Groupie
Groupie


Joined: 29 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cjrobindch Quote  Post ReplyReply Direct Link To This Post Topic: CXTPDockingPane::SetMinTrackSize()?
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
cjrobindch View Drop Down
Groupie
Groupie


Joined: 29 July 2008
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote cjrobindch Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.046 seconds.