VtDrawnListAddItem drawnlist_widgetName [options]
Adds an item to the DrawnList. If you do not specify a position VtDrawnListAddItem will append it to the end of the list.
For example:
VtDrawnListAddItem $dlist \ -formatList {{ICON 2} {STRING 20} {STRING 15}} \ -fieldList [list 1 "Orange" "Fruit"]
{ type width [left_margin, right_margin] }
The left_margin and right_margin parameters are optional. The following specifies a column that is of type ICON, with a width of 1 icon width and a left_margin and right_margin of 5 pixels:
{ ICON 1 5 5 }
Valid types are ICON, STRING, and DATA. DATA is not displayed on the screen; it is used to store item specific data.
For example:
-formatList { {ICON 3} {STRING 20 5} {DATA} }
The first column is an icon field with a width of 3, the second column contains a string with a width of 20 and a left margin of 5, the third column contains hidden data.
smallPlainFont
smallBoldFont
smallItalicFont
medPlainFont
medBoldFont
medItalicFont
largePlainFont
largeBoldFont
largeItalicFont
monoNormalFont
monoBoldFont
monoItalicFont
{ { 0 1 "Apple" "Fruit"} { 1 1 "Kumquat" "Fruit"} { 1 3 "Leek" "Vegetable"} }
For information about using connection icons, refer to the VtDrawnList manual page.