Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - PropertyItemEnumFlags Item as a Child
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PropertyItemEnumFlags Item as a Child

 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: PropertyItemEnumFlags Item as a Child
    Posted: 24 January 2006 at 12:02am

I added a top level category of which I then added a Child item. This child item is of the type PropertyItemEnumFlags. All works fine except that the child item is postioned not indented below its parent item but instead is set at the same left value as the parent item. This provides the *appearance* that the child item is NOT actually a child item at all --when in fact is. If I collaspe the parent item the child item is folded beneath it. How do I get the child item to be indented below the parent item? Here is the code I used:

    Set Category = Me.prpgrd.AddCategory("Filter...")
   
    Category.Expanded = True
   
        Set SubCategory = Category.AddChildItem(PropertyItemEnumFlags, "Ignore files with these attributes:", 1)
   
        SubCategory.Constraints.Add "Do nothing", 1
        SubCategory.Constraints.Add "Archive", 2
        SubCategory.Constraints.Add "Compressed", 4
        SubCategory.Constraints.Add "Hidden", 8
        SubCategory.Constraints.Add "Read only", 16
        SubCategory.Constraints.Add "System", 32

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: 24 January 2006 at 2:15pm

Hi,

Colors of Category items are different and visually it looks as category - parent item. Same appearance in Visual Studio .NET grid

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.141 seconds.