![]() |
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)
Quote Reply
Topic: How do I add Icon to Shortcut BarPosted: 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
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 August 2007 at 1:18pm |
|
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)
Quote Reply
Posted: 02 August 2007 at 7:28am |
|
Sorry - My Mistake - I meant how do I add an icon to the ShortCutCaption control. Any ideas ? |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 August 2007 at 3:19pm |
|
ShortcutCaption.Icon = Some Id in Imagemanager
|
|
![]() |
|
LeeHayton
Senior Member
Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 August 2007 at 4:34am |
|
Yes I agree - but how do I tell it WHICH Imagemanager to be associated with ?
|
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 August 2007 at 9:17am |
|
The same one assigned to shortcutbar
|
|
![]() |
|
LeeHayton
Senior Member
Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
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) |
|
![]() |
|
LeeHayton
Senior Member
Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 August 2007 at 10:17am |
|
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)
Quote Reply
Posted: 03 August 2007 at 10:45am |
|
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 |