Print Page | Close Window

How to prevent opening of the Child Items

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=3628
Printed Date: 30 June 2024 at 5:19pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to prevent opening of the Child Items
Posted By: Miroslaw
Subject: How to prevent opening of the Child Items
Date Posted: 08 February 2006 at 6:41pm

There is here such fragment of code:

      Set SubCategory = Appearance.AddChildItem(PropertyItemString, "Gradient")
      SubCategory.Tag = "BAR_GRADIENT"
      
        With SubCategory
          Set Item = .AddChildItem(PropertyItemBool, "Visible", True)
          Item.Tag = "BAR_GRADIENT_VISIBLE"
         
          Set Item = .AddChildItem(PropertyItemEnum, "Direction:", 0)
          Item.Tag = "BAR_GRADIENT_DIRECTION"
          Item.Flags = ItemHasComboButton
       End with 

 How to do so that was the Gradient name visible, 
 but when I press on a cross there was no opening of the Child Items  contained in SubCategory?

If I set the value of parameter of SubCategory.ReadOnly = True,
nevertheless when I press on a cross there is opening of the Child Items contained in it.




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