![]() |
CXTPToolBar Vertical Docking |
Post Reply ![]() |
Author | |
kanlaw ![]() Groupie ![]() Joined: 03 August 2004 Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() 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? |
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
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. ![]() Edited by SuperMario |
|
![]() |
|
kanlaw ![]() Groupie ![]() Joined: 03 August 2004 Status: Offline Points: 11 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |