Print Page | Close Window

PropertyItemEnumFlags Item as a Child

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


Topic: PropertyItemEnumFlags Item as a Child
Posted By: Shawshank
Subject: PropertyItemEnumFlags Item as a Child
Date 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




Replies:
Posted By: Oleg
Date 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



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