TreeView Icons from ImageManager |
Post Reply |
Author | |
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
Posted: 11 March 2005 at 1:02am |
Is it possible for the MS Tree View to use the icons stored in an ImageManager icons collection? |
|
Devin Dazzle
Newbie Joined: 19 October 2004 Location: Denmark Status: Offline Points: 13 |
Post Options
Thanks(0)
|
No, this is not possible. The MS TreeView control can only use the MS ImageList control. When you assign an ImageList to a TreeView the hID is passed to indentify it. The ImageManager doesn't support this and does not comply with standard ImageList commands. So you have to use both.
|
|
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
|
I thought as much, though I was hoping that someone would have a cunning solution. I like being able to load implementation specific icons into an application , but don't like loading them into two places (seems a waste). I like the inbuilt features the imagemanager has for loading icons (e.g. from an image 'strip') but don't like the fact that you can't then get indivdual icons out. Edited by ianp |
|
Devin Dazzle
Newbie Joined: 19 October 2004 Location: Denmark Status: Offline Points: 13 |
Post Options
Thanks(0)
|
I can't agree more. It is a complete waste to have to have two seperate image holding controls. Much of the time you might want to use the same icon in a toolbar and in a ListView/TreeView. Having the same icon contained in two different controls on the same form is a waste of resources. Edited by Devin Dazzle |
|
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 |