Print Page | Close Window

Width of the command bar

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=9731
Printed Date: 16 June 2025 at 11:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Width of the command bar
Posted By: Daedalus
Subject: Width of the command bar
Date 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!



Replies:
Posted By: younicke
Date Posted: 28 February 2008 at 5:04am
you can use Toolbar.EnableDocking xtpFlagStretched



Posted By: Daedalus
Date Posted: 28 February 2008 at 7:30am
Awesome! That's just what I needed! Thanks!



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