Toolbar buttons with multiline captions |
Post Reply |
Author | |
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
Posted: 24 August 2006 at 4:50am |
Hello,
is there any way to have multiline text captions shown in a toolbar? I have a toolbar with both icons and texts displayed (text below icon), but the long, single-line texts make the toolbar buttons differently sized, which is really not a nice visual experience. How to make these buttons equally sized (with their texts displayed under the button)? Thanks a lot, in advance! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
try xtpButtonIconAndCaptionBelow style. See new Samples\CommandBars\GallerySample sample.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
|
Yes, it's much better now, thanks!
So an information for others who may be interested: it means that calling m_pXTPToolbar->ShowTextBelowIcons(TRUE); for the whole toolbar is _not_ the same as calling pXTPButton->SetStyle(xtpButtonIconAndCaptionBelow); for each button in that toolbar. Toolbar captions are in two rows at most with this approach. I guess there won't be any more lines even if caption will be very-very long, so developers shall e.g. cut the caption with an ellipsis if they need to. |
|
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
|
Hello,
one additional question about the xtpButtonIconAndCaptionBelow style: is there any way to make all the toolbar buttons use the same width? Because when I set the above style for my buttons, each button is exactly as wide as it needs to be according to its caption text length. However, my toolbar has several rows of buttons, so the buttons are not lined up below each other correctly (because each of them has a different width) which can be a problem for the clients. Can I make them all the same width somehow if I use the above button style? Thanks a lot! |
|
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 |