Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - [SOLVED] Wrap longText in CXTPControlGalleryItem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] Wrap longText in CXTPControlGalleryItem

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] Wrap longText in CXTPControlGalleryItem
    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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
alen821125 View Drop Down
Newbie
Newbie


Joined: 17 May 2011
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote alen821125 Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2012 at 12:42am

Could you give a sample?

I got this problem to
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.187 seconds.