Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Add Item to a Gallery
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Add Item to a Gallery

 Post Reply Post Reply
Author
Message
cmm2006 View Drop Down
Senior Member
Senior Member


Joined: 26 September 2006
Status: Offline
Points: 118
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmm2006 Quote  Post ReplyReply Direct Link To This Post Topic: Add Item to a Gallery
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
cmm2006 View Drop Down
Senior Member
Senior Member


Joined: 26 September 2006
Status: Offline
Points: 118
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmm2006 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2009 at 5:35am
Hi,
 
See How it works in RibbonSample + its ID_GALLERY_SHAPES.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cmm2006 View Drop Down
Senior Member
Senior Member


Joined: 26 September 2006
Status: Offline
Points: 118
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmm2006 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
cmm2006 View Drop Down
Senior Member
Senior Member


Joined: 26 September 2006
Status: Offline
Points: 118
Post Options Post Options   Thanks (0) Thanks(0)   Quote cmm2006 Quote  Post ReplyReply Direct Link To This Post 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
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.156 seconds.