Print Page | Close Window

Set DialogBar Width in code at runtime

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=13729
Printed Date: 07 October 2024 at 12:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Set DialogBar Width in code at runtime
Posted By: stefanadelbert
Subject: Set DialogBar Width in code at runtime
Date Posted: 18 March 2009 at 9:46pm
Hi

I would like to set the width of a DialogBar at runtime, but am not sure how to do this. I've tried resizing the child before associating it with the dialog bar; I've tried resizing the child after associating it with the dialog bar; I've tried resizing the dialog bar, which seems to have no effect.

How should this be done?

Stefan



Replies:
Posted By: stefanadelbert
Date Posted: 19 March 2009 at 11:45pm
The trick with setting the DialogBar width is to use the SetSize method. Take a look in the documentation.

I have no clue why the DialogBar Width property is defined as read-write, as writing to it seems to have no effect. Also, why is the Width property defined and not Height? Some inconsistencies there.


Posted By: younicke
Date Posted: 27 April 2009 at 9:11am
how about setting the max width the dialogbar can be resized?
how do u do it?

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