Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PosNameTypeDescription
<1, 1>LevelIntegerThe item's level in the tree
<1, 2>KeyTextThe item's unique key
<1, 3>DataTextThe item's data
<1, 4>Data Type  
<1, 4, 1>TypeOptionThe item's data type, used to make sorting most accurate and efficient
<1, 4, 2>FormatFormatted StringThe item's data format, used to present the data
<1, 5>ClassTextThe item's class, an application specific string that can used for classification purposes
<1, 6>ImageFormatted StringThe item's image, either a file or a key pointing to a global image
<1, 7>Colors  
<1, 7, 1>Text ColorColorThe color of the item's text
<1, 7, 2>BackgroundColor FillThe item's background
<1, 8>FontFontThe font used to render the item's data
<1, 9>Alignment  
<1, 9, 1>HorizontalOptionThe horizontal alignment of the item's data
<1, 9, 2>VerticalOptionThe vertical alignment of the item's data
<1, 10>SortOptionThe item's sort setting
<1, 11>Check BoxOptionThe item's check box setting
<1, 12>ExpandableBooleanWhether or not the item can be expanded or collapsed by the user
<1, 13>HeightIntegerThe item's height
<1, 14>HyperlinkBooleanWhether or not the item displays hyperlink feedback to the user
<1, 15>SelectableBooleanWhether or not the item can be selected by the user

...

The remaining values in each field initialize the new item. They are all optional, so set only those that are necessary. Usually, you will only set the Data and Class values while letting the default property settings take care of the rest. See Default Properties for more information.

See the Item property for more details.

...

Code Block
// Assume a tree with boys and girls organized into teams 
// Add a couple boys and girls to the blue team 
NewItems = "" 
NewItems<-1> = 1:@VM:"Grace":@VM:"Grace":@VM:@VM:"Girl" 
NewItems<-1> = 1:@VM:"Kaylee":@VM:"Kaylee":@VM:@VM:"Girl" 
NewItems<-1> = 1:@VM:"Alexander":@VM:"Alexander":@VM:@VM:"Boy" 
NewItems<-1> = 1:@VM:"Nathan":@VM:"Nathan":@VM:@VM:"Boy" 
Send_Message(@Window:".OLE_TREE", "OLE.AddItems", "BlueTeam", NewItems)

See Also

ItemListInsertItemsMoveItemsRemoveItemsRemoveAllItems