How Do I add Descriptions to Gallery Items |
Post Reply |
Author | |
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Try to set GalleryControl.Style = xtpButtonIconAndCaption ' or xtpButtonCaptionAndDescription
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, You also need set some icons for these items.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |