How do I add Icon to Shortcut Bar |
Post Reply |
Author | |
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
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
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Just look at Outlook 2003 sample or any commandbars sample that uses imagemanager.
|
|
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
|
Sorry - My Mistake - I meant how do I add an icon to the ShortCutCaption control. Any ideas ? |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
ShortcutCaption.Icon = Some Id in Imagemanager
|
|
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
|
Yes I agree - but how do I tell it WHICH Imagemanager to be associated with ?
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
The same one assigned to shortcutbar
|
|
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
|
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
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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) |
|
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
|
Finally - I've got it to work.
Thanks for all your help
Lee
|
|
LeeHayton
Senior Member Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
|
Is it possible to right align the ICON leaving the text on the left? Lee
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |