Print Page | Close Window

[SOLVED] Wrap longText in CXTPControlGalleryItem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=19362
Printed Date: 08 May 2024 at 3:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Wrap longText in CXTPControlGalleryItem
Posted By: mgampi
Subject: [SOLVED] Wrap longText in CXTPControlGalleryItem
Date Posted: 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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Replies:
Posted By: mgampi
Date Posted: 29 December 2011 at 6:58pm
Nevermind,

solved it by using XAML markup!


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: alen821125
Date Posted: 19 January 2012 at 12:42am

Could you give a sample?

I got this problem to


Posted By: mgampi
Date 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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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