Print Page | Close Window

Can Caption in Left or Right of the pane

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=2873
Printed Date: 12 December 2024 at 3:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Can Caption in Left or Right of the pane
Posted By: New Jack
Subject: Can Caption in Left or Right of the pane
Date 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.




Replies:
Posted By: Agent 007
Date 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


Posted By: Agent 007
Date Posted: 28 September 2005 at 12:49pm
Make the second one
m_paneManager.SetCaptionDirection(xtpPaneCaptionVertical)




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