Print Page | Close Window

Add Icon to ShortcutCaption

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Shortcut Bar
Forum Description: Topics Related to Codejock Shortcut Bar
URL: http://forum.codejock.com/forum_posts.asp?TID=13484
Printed Date: 28 April 2024 at 4:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add Icon to ShortcutCaption
Posted By: moe188
Subject: Add Icon to ShortcutCaption
Date Posted: 24 February 2009 at 5:37am
hi,
is there any way to add an icon (16x16 or 32x32,...) to ShortcutCaption control? if so, please let me know how?
thank you
NOTE: please reply ASAP



Replies:
Posted By: Oleg
Date Posted: 24 February 2009 at 1:21pm
Did you try Icon property ?

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


Posted By: moe188
Date Posted: 24 February 2009 at 5:18pm
hi,
i checked your help file, but it's not clear how you can use the icon property, so little bit of help please....
thank you


Posted By: Oleg
Date Posted: 25 February 2009 at 2:06am
 
Add ImageManager from CommandBars.ocx, load your ico or bmp in design time and add in code
 
Set sb.Icon = ImageManager.GetImage(...)


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


Posted By: cmm2006
Date Posted: 25 February 2009 at 1:52pm
Hi all,
I was wondering how to do the same thing, but how can I do it using the standard imagelist. I tried the following code but for some reason it's not showing the icon, some help here....
code:
set sb.icon=imagelist1.listimages(index).extracticon



Posted By: Oleg
Date Posted: 26 February 2009 at 3:58am
You can't do it with ImageList :(

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


Posted By: cmm2006
Date Posted: 26 February 2009 at 7:12am

well that is not good at all, is there any chance that can be added in the next release?
about the imagemanager, how can I add icons from an existing folder in my pc?
thank you


Posted By: Oleg
Date Posted: 26 February 2009 at 10:09am
Hi,
Almost all our samples from CommandBars folder show it.


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


Posted By: moe188
Date Posted: 26 February 2009 at 1:59pm
thank you all,
I tried the ImageManger control and it did worked with the following code:
set sb.icon=imagemanager.icons.geticon(IconIndexHere, 0)
and not: set sb.icon=imagemanger.getimage(...)
thank you,





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