Print Page | Close Window

How to add Icon

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=3438
Printed Date: 23 November 2024 at 12:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to add Icon
Posted By: Miroslaw
Subject: How to add Icon
Date Posted: 23 December 2005 at 10:59pm

How to add Icon to the value of PropertyGridItem?

If I use these lines of code:
      Set Item = Category.AddChildItem(PropertyItemPicture, "Values Format", "")
      Dim AppIcon As Picture
      Set AppIcon = LoadPicture(App.Path + "\Icons\Edit.ico")
      Item.Value = AppIcon

I get the Icon with additional text (Icon).
But I can't remove this text (Icon).

As I know there is another way:

To set  Item.ValueMetrics.IconIndex = MyIndex


But how to bind MyIndex with ImageManager1 ?

 




Replies:
Posted By: Oleg
Date Posted: 26 December 2005 at 2:08am

Hello,

You must set ImageManager Icons first:

Set PropetryGrid.Icons = ImageManager1.Icons



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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