Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Width of the command bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Width of the command bar

 Post Reply Post Reply
Author
Message
Daedalus View Drop Down
Newbie
Newbie


Joined: 28 February 2008
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Daedalus Quote  Post ReplyReply Direct Link To This Post Topic: Width of the command bar
    Posted: 28 February 2008 at 3:06am
Hello,

I'm using the CommandBar set of controls to make a menu, and I'm wanting to have the toolbar section be the entire width of the form.

I'm using the Office 2007 theme, for the blue backgrounds and gradients.

I tried adding a label control to the end, and resizing that to the width of the form, but if the user resizes too quickly, it splits the commandbar into two lines for a moment as the resize events catch up. Apart from that it's the look I want. Is there a setting to autosize a control?

I based my work off the Icon Sample in the Commandbars samples (for C#), and all of those samples have the commandbar just take up the size of the icons.

If anyone has any further ideas, please let me know!
Back to Top
younicke View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 March 2005
Status: Offline
Points: 107
Post Options Post Options   Thanks (0) Thanks(0)   Quote younicke Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2008 at 5:04am
you can use Toolbar.EnableDocking xtpFlagStretched

Back to Top
Daedalus View Drop Down
Newbie
Newbie


Joined: 28 February 2008
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Daedalus Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2008 at 7:30am
Awesome! That's just what I needed! Thanks!
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.156 seconds.