See Also
Enumerations
Name | Values |
Types | ReadOnly |
SingleLine |
LongText |
Color |
SelectFile |
SelectFolder |
Boolean |
Integer |
Popup |
Picture |
List |
Password |
Custom |
Date |
Time |
DateTime |
Constants
This class exposes no Constants
Events
Definition | Description |
ShowMenu() as MenuItem | Called when a user clicks the disclosure triangle on popup values. Displays that child’s popup menu and handles returned values. |
Methods
Definition | Description |
Constructor( ItemName as String, ItemValue as String, ItemType as Integer ) | Creates an instance of the class with the parametes as property values. |
Properties
Name | Type | Default Value | Description | |
EditorFormat | String | “” | Applies the specified format string to the value when Type = kChildSingleLine. | |
EditorMask | String | “” | Applies the specified mask string to the value when Type = kChildSingleLine. | |
ListItems() | String | Sets the ListItems to be displayed for children with a type of kChildPopup. | | |
Name | String | The name of the object | set in the constructor. Can be used | a reference point for searching through the array of children of a PropertyListHeader |
ReadOnly | Boolean | False | When True, the user will not be able to edit the contents of the value cell. | |
Type | Type | The type of value this child contains. | | |
Value | String | The current string value of the child. | | |
ValueBoolean | Boolean | The current boolean value of the child. | | |
ValueColor | Color | The current color value of the child. | | |
ValueDateTime | DateTime | The current DateTime value of the child. | | |
ValueInteger | Integer | The current integer value of the child. | | |
ValuePicture | Picture | The current picture value of the child. | | |
Examples
Dim h as new PropertyListHeader( “Test”, GraffitiPropertyList1 )
h.Children.Append( new PropertyListChild( “Normal”, “Nil”, PropertyListChild.kChildReadOnly ) )
h.Children.Append( new PropertyListChild( “Color”, “#000000″, PropertyListChild.kChildColor ) )
h.Children.Append( new PropertyListChild( “Integer”, “0”, PropertyListChild.kChildInteger ) )
h.Children.Append( new PropertyListChild( “Long Text”, “This is long text” + EndOfLine + “Just a test, of course”, PropertyListChild.kChildLongText ) )
h.Children.Append( new PropertyListChild( “Select File”, SpecialFolder.Documents.Item(1).AbsolutePath, PropertyListChild.kChildSelectFile ) )
h.Children.Append( new PropertyListChild( “Select Folder”, SpecialFolder.Documents.AbsolutePath, PropertyListChild.kChildSelectFolder ) )
h.Children.Append( new PropertyListChild( “Single Line”, “This is single line text”, PropertyListChild.kChildSingleLine ) )
h.Children.Append( new PropertyListChild( “Boolean”, “False”, PropertyListChild.kChildBoolean ) )
h.Children.Append( new PropertyListChild( “Picture”, “”, PropertyListChild.kChildPicture ) )
dim newChild as PropertyListChild = new PropertyListChild( “PopupMenu”, “Red”, PropertyListChild.kChildPopup )
newChild.ListItems.Append( “Red” )
newChild.ListItems.Append( “Blue” )
newChild.ListItems.Append( “Green” )
h.Children.Append( newChild )