Print Page | Close Window

How Do I add Descriptions to Gallery Items

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=12305
Printed Date: 07 October 2024 at 12:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How Do I add Descriptions to Gallery Items
Posted By: LeeHayton
Subject: How Do I add Descriptions to Gallery Items
Date Posted: 01 October 2008 at 5:03am
How do I display a caption and a description for gallery items?
 
I have tried all sorts of combinations with the gallery and gallery items styles but for some reason i can;t get it to work.
 
Thanks
Lee



Replies:
Posted By: Oleg
Date Posted: 01 October 2008 at 5:15am
Hi,
 
Try to set GalleryControl.Style = xtpButtonIconAndCaption ' or xtpButtonCaptionAndDescription


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: LeeHayton
Date Posted: 01 October 2008 at 5:34am
Hello - can you tell me why the code below does not show the DescriptionText - only the captions?
 
Thanks
Lee
 
Dim cbp As CommandBarPopup, cbg As CommandBarGallery, cbgis As CommandBarGalleryItems, cbgi As CommandBarGalleryItem
With CommandBars1
    Set cbp = .ActiveMenuBar.Controls.Add(xtpControlPopup, 1, "Reports")
        Set cbg = cbp.CommandBar.Controls.Add(xtpControlGallery, 2, "Gallery 1")
            cbg.Style = xtpButtonCaptionAndDescription
            Set cbgis = .CreateGalleryItems(1)
                cbgis.ItemWidth = 0
                Set cbgi = cbgis.AddItem(1, "Gallery Item 1")
                    cbgi.DescriptionText = "This is the description text"
                Set cbgi = cbgis.AddItem(1, "Gallery Item 2")
                Set cbgi = cbgis.AddItem(1, "Gallery Item 3")
   
        Set cbg.Items = cbgis
End With
 


Posted By: Oleg
Date Posted: 01 October 2008 at 2:09pm

Hi,

You also need set some icons for these items.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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