![]() |
Automatically adjust width of button on ribbon bar |
Post Reply ![]() |
Author | |
nttrungmt ![]() Newbie ![]() ![]() Joined: 15 September 2008 Location: Vietnam Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() Posted: 18 September 2008 at 3:35am |
Hi
I have an application using ribbon bar Caption of buttons on ribbon bar don't have same length so that I have used CXTPControl::SetWidth() to make buttons in ribbon bar same width The ribbon display well when width of program is enough ![]() But when i resize the main form smaller -> 3 buttons on ribbon bar will be resized like this ![]() There are 3 buttons became horizontal with small icon + caption. But you can see the button don't display full caption anymore because the width i set before is not enough. My question is how i handle event in which button on ribbon bar is changed style and how i can change the size of button to display all caption automatically. I can set the maximize width for these button but in normal style (vertical icon + caption) the button is to big. Is there any other way to handle? |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hello,
You can prevent these 3 buttons to be minimized:
pButton->SetStyle(xtpButtonIconAndCaptionBelow);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |