Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Can Caption in Left or Right of the pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can Caption in Left or Right of the pane

 Post Reply Post Reply
Author
Message
New Jack View Drop Down
Newbie
Newbie


Joined: 01 September 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote New Jack Quote  Post ReplyReply Direct Link To This Post Topic: Can Caption in Left or Right of the pane
    Posted: 11 September 2005 at 7:27am

I create dockingpane with xtpPaneThemeVisio, when the pane dock to bottom or top , i want the caption is drawn in left or right side of the pane.

Is there any way to do this ?

thanks.

Back to Top
Agent 007 View Drop Down
Newbie
Newbie
Avatar

Joined: 08 April 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Agent 007 Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2005 at 12:48pm
You can draw the caption on the left side or on the top of the pane.
Also, the captions can be set to draw automatically depending on it the pane is large enough to display the caption. Use the following ways to set the behaviour for the caption:

Note: m_paneManager is declared as CXTPDockingPaneManager m_paneManager;

m_paneManager.SetCaptionDirection(xtpPaneCaptionHorizontal) or
m_paneManager.SetCaptionDirection(xtpPaneCaptionHorizontal) or
m_paneManager.SetCaptionDirection(xtpPaneCaptionAutoByPosition) or
m_paneManager.SetCaptionDirection(xtpPaneCaptionAutoBySize)

See the DockingPane sample: Pane
Back to Top
Agent 007 View Drop Down
Newbie
Newbie
Avatar

Joined: 08 April 2005
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Agent 007 Quote  Post ReplyReply Direct Link To This Post Posted: 28 September 2005 at 12:49pm
Make the second one
m_paneManager.SetCaptionDirection(xtpPaneCaptionVertical)

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.141 seconds.