Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Icons and Categories
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Icons and Categories

 Post Reply Post Reply
Author
Message
Shawshank View Drop Down
Senior Member
Senior Member


Joined: 16 October 2005
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shawshank Quote  Post ReplyReply Direct Link To This Post Topic: Icons and Categories
    Posted: 14 March 2006 at 9:46am
Is it possible to include an image alongside a category type?
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: 14 March 2006 at 9:57am
Yes, use CaptionMetrics
Back to Top
Shawshank View Drop Down
Senior Member
Senior Member


Joined: 16 October 2005
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shawshank Quote  Post ReplyReply Direct Link To This Post Posted: 14 March 2006 at 10:52am
Ah, great. That worked perfectly.
Back to Top
Shawshank View Drop Down
Senior Member
Senior Member


Joined: 16 October 2005
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shawshank Quote  Post ReplyReply Direct Link To This Post Posted: 14 March 2006 at 11:15am

I spoke to soon. I think I have it setup properly but the icon does not appear. My code is:

Me.pGrid.Icons = Me.ImageMan.Icons

Me.pGrid.Icons.AddIcons Me.ImageMan.Icons

I've tried the above statements, independent of one another.

Set Item = UserItem.AddChildItem(PropertyItemCategory, "Newsgroups")

Item.CaptionMetrics.IconIndex = 1

The only thing I don't get is the icon. Is my code proper or am I forgetting something here? I do have an icon at index 1 within the ImageManager (Me.ImageMan).

 

Back to Top
Shawshank View Drop Down
Senior Member
Senior Member


Joined: 16 October 2005
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shawshank Quote  Post ReplyReply Direct Link To This Post Posted: 15 March 2006 at 10:32am
As it turned out the appearance of the icons is dependent on which visual theme is set.
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.172 seconds.