![]() |
Setting control size |
Post Reply ![]() |
Author | |
ibmldev ![]() Groupie ![]() Joined: 17 October 2006 Status: Offline Points: 19 |
![]() ![]() ![]() ![]() ![]() 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)? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
You can call SetWidth for normal button also.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
ibmldev ![]() Groupie ![]() Joined: 17 October 2006 Status: Offline Points: 19 |
![]() ![]() ![]() ![]() ![]() |
Thanks, not sure why I didn't see that earlier...
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |