Print Page | Close Window

Setting control size

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11129
Printed Date: 13 June 2025 at 5:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Setting control size
Posted By: ibmldev
Subject: Setting control size
Date Posted: 20 June 2008 at 12:20pm
If I add controls (CXTPControlButton, CXTPControlEdit, etc.) to a group in a tab in my ribbon bar, I see that the width of each control depends on the control's content. For example, if I add three buttons with captions "A", "B", and "This Is A Long Caption", then the width of the group (or at least that column in the group) is determined by the third button--but the first two buttons don't stretch to fill in the space, and are left-justified within the column.

Most controls seem to exhibit the same behavior, but I see that for some reason CXTPControlEdit has a SetWidth() member. Is there any way to set the width of other controls, or to specify a minimum width for all controls in a group? Is it possible to center controls in their column of the group?

Is there any layout capability (like Qt has, if you know Trolltech's product)?



Replies:
Posted By: Oleg
Date Posted: 20 June 2008 at 1:29pm
Hello,
 
You can call SetWidth for normal button also.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ibmldev
Date Posted: 20 June 2008 at 2:48pm
Thanks, not sure why I didn't see that earlier...



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