CheckBoxStyle Property
Description
Get/set whether a check box or drop down menu will be used for boolean (True/False) input.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property CheckBoxStyle() As Boolean
Remarks
- Set to True to use a check box for boolean (True/False) input.
- Set to False to use a drop down menu for boolean (True/False) input.
Example
Set Category = wndPropertyGrid.AddCategory("Dynamic Options")
Dim ItemBool As PropertyGridItemBool
Set ItemBool = Category.AddChildItem(PropertyItemBool, "Advanced", False)
ItemBool.Id = 501
ItemBool.CheckBoxStyle = True
Set ItemBool = Category.AddChildItem(PropertyItemBool, "Option 1", False)
ItemBool.CheckBoxStyle = True
Set ItemBool = Category.AddChildItem(PropertyItemBool, "Option 2", False)
ItemBool.CheckBoxStyle = False
Set ItemBool = Category.AddChildItem(PropertyItemBool, "Option 3", False)
ItemBool.CheckBoxStyle = True
Set ItemBool = Category.AddChildItem(PropertyItemBool, "Option 4", False)
ItemBool.Readonly = True
ItemBool.CheckBoxStyle = True
ItemBool.Value = True
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.