Print Page | Close Window

Icons and Categories

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=3773
Printed Date: 23 November 2024 at 1:02pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icons and Categories
Posted By: Shawshank
Subject: Icons and Categories
Date Posted: 14 March 2006 at 9:46am
Is it possible to include an image alongside a category type?



Replies:
Posted By: SuperMario
Date Posted: 14 March 2006 at 9:57am
Yes, use CaptionMetrics


Posted By: Shawshank
Date Posted: 14 March 2006 at 10:52am
Ah, great. That worked perfectly.


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

 



Posted By: Shawshank
Date Posted: 15 March 2006 at 10:32am
As it turned out the appearance of the icons is dependent on which visual theme is set.



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