![]() |
[SOLVED] Wrap longText in CXTPControlGalleryItem |
Post Reply
|
| Author | |
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
Topic: [SOLVED] Wrap longText in CXTPControlGalleryItemPosted: 29 December 2011 at 4:50pm |
|
Hi;
I want to wrap long captions to use two lines of text in default CXTPControlGalleryItem(s). I don't want the text to be clipped at the right border. How can this be achieved? |
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
Posted: 29 December 2011 at 6:58pm |
|
Nevermind,
solved it by using XAML markup! |
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
alen821125
Newbie
Joined: 17 May 2011 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 January 2012 at 12:42am |
|
Could you give a sample? I got this problem to
|
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 January 2012 at 10:42am |
|
Call CXTPControlGalleryItems::EnableMarkup(TRUE)
then insert items/labels by calling CXTPControlGalleryItems::AddLabel() and/or CXTPControlGalleryItems::AddItem() using XAML for Captions and finally calculate the height off all items. Then set the size of the according CXTPControlGallery to the size required. That's it! |
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
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 |