Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Shortcut Bar
  New Posts New Posts RSS Feed - How do I add Icon to Shortcut Bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do I add Icon to Shortcut Bar

 Post Reply Post Reply
Author
Message
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Topic: How do I add Icon to Shortcut Bar
    Posted: 31 July 2007 at 12:22pm
Sorry - but I just can't figure it out - can you help?
 
I can see that there is an Icon property but do not know how to associate an imagelist/iconmanager to the shortcut bar and assign the icon ID.
 
I am using VB6 if that makes any difference.
 
Thanks
Lee
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 01 August 2007 at 1:18pm
Just look at Outlook 2003 sample or any commandbars sample that uses imagemanager.
Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2007 at 7:28am

Sorry - My Mistake - I meant how do I add an icon to the ShortCutCaption control.

Any ideas ?

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 02 August 2007 at 3:19pm
ShortcutCaption.Icon = Some Id in Imagemanager
Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2007 at 4:34am
Yes I agree - but how do I tell it WHICH Imagemanager to be associated with ?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2007 at 9:17am
The same one assigned to shortcutbar
Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2007 at 9:50am
I see...that makes sense.
 
However, I have tried your suggestion and am still no further forward.  I have ttried using the imagemanager and an image list and neither will allow me to assign an icon to the shortcutcaption.icon property.
 
NEITHER THIS...
 
ShortcutBar1.Icons.AddIcons ImageManager1.Icons
ShortcutCaption1.Icon = 1
OR THIS WORKS....
 
ShortcutBar1.AddImageList ImageListShortcutBar
ShortcutCaption1.Icon = 1
Can you give me the complete example of assigning an image list to the bar and then the ShortcutCaption because I just can't get it.
 
Thanks again.
Lee
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2007 at 10:09am
Sorry, forgot the caption bar icon was of type ImageManagerIcon, try something like this.

Set wndShortcutBar.Icons = ImageManager.Icons
captionTitle.Icon = wndShortcutBar.Icons.GetImage(100, 16)
Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2007 at 10:17am
Finally - I've got it to work.
 
Thanks for all your help
 
Lee
Back to Top
LeeHayton View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 November 2005
Location: United Kingdom
Status: Offline
Points: 102
Post Options Post Options   Thanks (0) Thanks(0)   Quote LeeHayton Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2007 at 10:45am

Is it possible to right align the ICON leaving the text on the left?

Lee
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.