Print Page | Close Window

How do I add Icon to Shortcut Bar

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=7699
Printed Date: 02 May 2024 at 12:21am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How do I add Icon to Shortcut Bar
Posted By: LeeHayton
Subject: How do I add Icon to Shortcut Bar
Date 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



Replies:
Posted By: SuperMario
Date Posted: 01 August 2007 at 1:18pm
Just look at Outlook 2003 sample or any commandbars sample that uses imagemanager.


Posted By: LeeHayton
Date Posted: 02 August 2007 at 7:28am

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

Any ideas ?



Posted By: SuperMario
Date Posted: 02 August 2007 at 3:19pm
ShortcutCaption.Icon = Some Id in Imagemanager


Posted By: LeeHayton
Date Posted: 03 August 2007 at 4:34am
Yes I agree - but how do I tell it WHICH Imagemanager to be associated with ?


Posted By: SuperMario
Date Posted: 03 August 2007 at 9:17am
The same one assigned to shortcutbar


Posted By: LeeHayton
Date 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


Posted By: SuperMario
Date 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)


Posted By: LeeHayton
Date Posted: 03 August 2007 at 10:17am
Finally - I've got it to work.
 
Thanks for all your help
 
Lee


Posted By: LeeHayton
Date Posted: 03 August 2007 at 10:45am

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

Lee



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