Print Page | Close Window

CXTPToolBar Vertical Docking

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=1013
Printed Date: 06 March 2025 at 7:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPToolBar Vertical Docking
Posted By: kanlaw
Subject: CXTPToolBar Vertical Docking
Date Posted: 03 August 2004 at 5:08am

How can I know a bar is docking(vert/horz) or floating? I want show/hide some controls on bar depending on the docking state. Where is the entry point? CXTPToolBar::CalcDockingLayout?




Replies:
Posted By: SuperMario
Date Posted: 06 August 2004 at 8:02am
Hi,
Take a look at the CommonControls sample.  I believe that the Options button toolbar does what you want.  Depending on what option is selected before you drag the toolbar to the left or right, the buttons will be hidden, shown as buttons, or shown vertically.

If you drag the sliderbar toolbar to the left or right, an image is displayed.

You might also use the CXTPCommandBar::GetPosition method which returns the XTPBarPosition.

I hope this helps.


Posted By: kanlaw
Date Posted: 12 August 2004 at 9:22pm

The CommonControls sample demos the SetVerticalPositionOption option of CXTPControlCustom, but normal button, like CXTPControlButton, has not it.

Have I must replace all my toolbar buttons with CXTPControlCustom???

Is it possible add the option in the CXTPControl.




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