Print Page | Close Window

Add Item to a Gallery

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=15848
Printed Date: 06 October 2024 at 2:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add Item to a Gallery
Posted By: cmm2006
Subject: Add Item to a Gallery
Date Posted: 14 December 2009 at 4:19pm
Hi,
is there any way to add an item to a gallery using the standard imagelist? if so, can you help with a sample please?
thank you,


-------------
Language: Visual Basic 6 SP6
OS: Windows XP Pro SP3
Product: Codejock Xtreme SuitePro 13.1



Replies:
Posted By: Oleg
Date Posted: 15 December 2009 at 4:49am
Hi,
 
Whats wrong with ImageManger control ? Just replace ImageList to ImageManager and you don't need deliver comctrl.ocx. Plus it support muliple dimensions and alpha icons.


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


Posted By: cmm2006
Date Posted: 15 December 2009 at 5:37am
HI,
there is nothing wrong with CJ ImageManager (I just used Imagelist for years), but still did not get an answer to my request. How can I be able to add item to a Gallery?
I tried:
const ID_USER=100

commandbars.AddImageList  ImageList1 '(or ImageManager1)

ItemsStyles.AddItem "ID_USER,"Users"

and for some reasons the only thing is shown is the caption "Users" but no image...
Also, is there any way to center the caption underneath the image?
Please help!!!


-------------
Language: Visual Basic 6 SP6
OS: Windows XP Pro SP3
Product: Codejock Xtreme SuitePro 13.1


Posted By: Oleg
Date Posted: 16 December 2009 at 5:35am
Hi,
 
See How it works in RibbonSample + its ID_GALLERY_SHAPES.


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


Posted By: cmm2006
Date Posted: 16 December 2009 at 4:06pm
Hi Oleg,
Well I did, and the RibbonSample does not have ImageManager, so how the sample can help me?
thank you


-------------
Language: Visual Basic 6 SP6
OS: Windows XP Pro SP3
Product: Codejock Xtreme SuitePro 13.1


Posted By: Oleg
Date Posted: 17 December 2009 at 7:30am
Hi,
 
This line set icons for Shapes gallery
GalleryShapeItems.Icons = CommandBars.Icons
It can be
GalleryShapeItems.Icons = ImageManager1.Icons
if you want load it from ImageManager1 control



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


Posted By: cmm2006
Date Posted: 17 December 2009 at 10:57am
Thank you Oleg 

-------------
Language: Visual Basic 6 SP6
OS: Windows XP Pro SP3
Product: Codejock Xtreme SuitePro 13.1



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