Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Shortcut Bar
  New Posts New Posts RSS Feed - Add Icon to ShortcutCaption
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Add Icon to ShortcutCaption

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


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post Topic: Add Icon to ShortcutCaption
    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
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: 24 February 2009 at 1:21pm
Did you try Icon property ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post 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
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: 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
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: 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

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: 26 February 2009 at 3:58am
You can't do it with ImageList :(
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: 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
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: 26 February 2009 at 10:09am
Hi,
Almost all our samples from CommandBars folder show it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
moe188 View Drop Down
Senior Member
Senior Member


Joined: 27 March 2006
Status: Offline
Points: 220
Post Options Post Options   Thanks (0) Thanks(0)   Quote moe188 Quote  Post ReplyReply Direct Link To This Post 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,


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.219 seconds.