Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPToolBar Vertical Docking
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPToolBar Vertical Docking

 Post Reply Post Reply
Author
Message
kanlaw View Drop Down
Groupie
Groupie


Joined: 03 August 2004
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote kanlaw Quote  Post ReplyReply Direct Link To This Post Topic: CXTPToolBar Vertical Docking
    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?

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.


Edited by SuperMario
Back to Top
kanlaw View Drop Down
Groupie
Groupie


Joined: 03 August 2004
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote kanlaw Quote  Post ReplyReply Direct Link To This Post 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.

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.