PropertyListChild
Constructor( ItemName as String, ItemValue as String, ItemType as Integer )
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 )
Events
This class exposes no events.
Methods
ShowMenu() as MenuItem
Called when a user clicks the disclosure triangle on popup values. Displays that child’s popup menu and handles returned values.
Properties
ListItems() as String
Sets the ListItems to be displayed for children with a type of kChildPopup.
Name as String
The name of the object as set in the constructor. Can be used as a reference point for searching through the array of children of a PropertyListHeader
Type as Integer
The type of value this child contains.
Valid Values:
kChildReadOnly(0)
kChildSingleLine(1)
kChildLongText(2)
kChildColor(3)
kChildSelectFile(4)
kChildSelectFolder(5)
kChildBoolean(6)
kChildInteger(7)
kChildPopup(8)
Value as String
The current string value of the child.
ValueBoolean as Boolean
The current boolean value of the child.
ValueColor as Color
The current color value of the child.
ValueInteger as Integer
The current integer value of the child.
ValuePicture as Picture
The current picture value of the child.