Print Page | Close Window

How to show CXTPControlGalleryItem caption?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17422
Printed Date: 04 June 2024 at 5:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to show CXTPControlGalleryItem caption?
Posted By: wssdev
Subject: How to show CXTPControlGalleryItem caption?
Date Posted: 13 October 2010 at 10:44am
[XTP 13.40, VS2008]

I'm trying to tweak the RibbonControls sample so that the items in the Styles inline gallery show both an image and a caption (some text below the image).

To that end, I tried to add individual items using CXTPControlGalleryItems::AddItem(LPCTSTR lpszCaption, int nId, int nImage) overload, i.e.

m_pItemsStyles->AddItem("My Item Caption", nStyle, nStyle);

but the gallery still shows only images for each item.

Is it possible at all to have an inline gallery with items where each item has both caption and an image always visible? If yes, how?

Thanks in advance!




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