Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - [Closed] Initial Positions
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Closed] Initial Positions

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: [Closed] Initial Positions
    Posted: 23 February 2007 at 4:26am
Hi,
 
How do I set the initial position of two panes (3, 5) as shown below?

Is it possible to assign 40% of available with to pane 3 and 60% to pane 5?

TIA, Simon
 
Simon HB9DRV
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2007 at 1:47pm
I've worked with this sample and cannot for the life of me work out how to do this - so...

HELP  !!!
Simon HB9DRV
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: 25 February 2007 at 1:17am
Hi,
 
Just set initial sizes of panes.
 
 CXTPDockingPane* pwndPane1 = m_paneManager.CreatePane(
  IDR_PANE1, CRect(0, 0,600, 120), xtpPaneDockBottom);
 m_paneManager.CreatePane(
  IDR_PANE2, CRect(0, 0,400, 120), xtpPaneDockLeft, pwndPane1);
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 25 February 2007 at 3:22am
Originally posted by oleg oleg wrote:

Hi,
 
Just set initial sizes of panes.
 
 CXTPDockingPane* pwndPane1 = m_paneManager.CreatePane(
  IDR_PANE1, CRect(0, 0,600, 120), xtpPaneDockBottom);
 m_paneManager.CreatePane(
  IDR_PANE2, CRect(0, 0,400, 120), xtpPaneDockLeft, pwndPane1);
Thanks - I just worked this out myself! Reading the documentation is one thing; understanding it another.
 
Again, many thanks for a brilliant product.
Simon HB9DRV
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.156 seconds.