Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - How to add Icon
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add Icon

 Post Reply Post Reply
Author
Message
Miroslaw View Drop Down
Newbie
Newbie


Joined: 14 November 2005
Location: Ukraine
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Miroslaw Quote  Post ReplyReply Direct Link To This Post Topic: How to add Icon
    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 ?

 

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.125 seconds.