$root.$iwindows.WINDOW.$objs.Tree List

Parent: $root.$iwindows.WINDOW.$objs
 
Children 

Class notation

Properties Methods Events 

A tree list is a type of window field that provides a graphical way of displaying a hierarchy of items.

Properties

Object specific 
$animateuiIf the library preference $animateui is true, all objects that support $animateui will animate aspects of their interface. The object property only applies when the library preference is false.
$boldheaderIf true, the heading has a bold font
$borderradiusRadius for rounded border corners.1 to 4 pixel values separated by -,in order topleft,topright,bottomright,bottomleft.If bottomleft is omitted it is topright.If bottomright is omitted it is topleft.If topright is omitted it is topleft
$buttonstyleThe drawing style of a button:kSystemButton,kUserButton,kNoBorderButton,kHeadingButton,kComboButton,kRoundButton,kLargeRoundButton, or kIDEButton.For headed and tree lists,it is the style of the header button: kSystemButton or kUserButton
kSystemButton kUserButton
$canresizecolumnsIf true, the user can use the mouse to resize the columns of the object
$colcountReturns the number of columns in the list
$columnalignmodeControls how $setcolumnalign affects the control. One of kAlignModeAll,kAlignModeBody, kAlignModeHeading and kAlignModeFooter
kAlignModeAll kAlignModeBody kAlignModeFooter kAlignModeHeading kAlignModeNone
$columnnamesThe names of the columns
$columnwidthsComma separated list of column widths,expressed in pixels
$contentlinecolorThe color of lines drawn in the content of the control.kColorDefault means draw dotted lines.All other values mean draw single pixel lines of the specified color
$defaulticoncolorThe color used to draw the icon for the item, when the icon is a themed SVG icon and the $iconcolor property of the item is kColorDefault. If $defaulticoncolor is also kColorDefault, then the themed icon is drawn using the text color
$defaultnodeiconThe icon identifier used to reference the tree default node icon. See also $defaultnodeiconcolor
$defaultwidthThe default width of a column
$disableellipsisIf ($cobj.$disableellipsis|$clib.$prefs.$disableellipsis) window instance headed list boxes,and tree lists with more than one column,do not draw an ellipsis when the displayed value is truncated due to insufficient space
$disablehottrackingIf true,the control does not draw any highlighting to show that the mouse is over the main body of the control but not pressed
$dropbetweenlinesIf true, the object highlights between lines during drag and drop
$expandcollapseiconThe icon identifier used to reference the tree expand collapse icon
$fieldstylefocusedThe style in system class #STYLES assigned to this field in addition to $fieldstyle when the control has focus
$firstvisThe number of the first visible character or line in the contents
$gridsectionThe type of the complex grid section containing the object. One of the kGrid... constants
$headerfillcolorThe fill color for the grid or headed list box header
$headerfontsizeThe font size for the text in the header;if this is zero,the header text font size is $fontsize
$headertextcolorThe text color for the header
$hideheaderIf true, the heading is hidden
$hilitecolumnsIf true, additional columns in the tree are highlighted
$hilitelineIf true, the object highlights lines during drag and drop
$hotA kHOT... constant that specifies the hot-tracking behaviour of the field
kHOThot kHOTnotHot kHOTplatformDefault
$lastvisThe number of the final fully visible character or line in the contents
$linecountThe number of visible lines in the tree
$multipleselectIf true, the field allows the user to select more than one line
$nodeiconsposA kIcon... constant that specifies the position of the node icons
kIconOnLeft kIconOnNode kIconSystemSet
$selectionbackcolorThe color of selected lines. kColorDefault means use the default color. When not kColorDefault only applies when the control has the focus
$selectiontextcolorThe text color of selected lines. kColorDefault means use the default color. When not kColorDefault applies irrespective of whether the control has the focus
$showcolumnlinesIf true, the control displays lines between columns
$showheaderlinesIf true,the control displays lines between column headers
$showhorzlinesIf true, the tree shows horizontal connecting lines
$shownodeiconsIf true, the tree shows node icons
$showvertlinesIf true, the tree shows vertical connecting lines
$studioideIf true,the control draws in a platform independent IDE style
$styledtextIf true, the field supports styled text. The text styles are stripped for objects on macOS style top toolbars,and for the menus created in place of lists to support vertical docking areas
$tooltipposA kTooltipPos... constant that specifies where $tooltip appears relative to the control
kTooltipPosBottom kTooltipPosLeft kTooltipPosMouse kTooltipPosRight kTooltipPosTop
$treedefaultlinesThe default lines with which the tree list will be populated
$treeindentlevelThe distance between tree indent levels
$treeleftmarginThe distance from the left that the tree will leave before drawing
$treelinehtextraThe extra vertical space to be added to each tree line
$treenodeiconmodeThe node icons will change according to this state
kNodeIconFixed kNodeIconLinkExpand kNodeIconLinkLine
$useiconsizeIf true,the tree uses the icon size component of icons such as the defaultnodeicon. If false,the tree uses the default size of each icon
Standard$active $alpha $backcolor $backgroundtheme $backpattern $bordercolor $candropcursor $componentinfo $container $contextmenu $cursor $disablefocus $disablefontsizekeys $disablesystemfocus $dragborder $dragiconid $dragmode $dragrange $dropmode $edgefloat $effect $enabled $fieldstyle $font $fontsize $fontstyle $forecolor $framehwnd $gridcolumn $hasfocus $height $helpfile $horzscroll $hscroll $hwnd $ident $keyevents $left $linestyle $mouseevents $name $nodropcursor $objtype $order $osdropflags $rmouseevents $selected $sidepanel $sidepanelmode $statusevents $textcolor $tooltip $top $userinfo $vertscroll $visible $vscroll $width

Methods

Object specific 
$add$add(cName[,iIdent,lRowForColumns]) adds a new root node to the tree
$clearallnodes$clearallnodes() Clears all nodes below the node,or when called as a method of the tree object,all nodes in the tree
$collapse$collapse() Collapses the nodes in the tree
$countReturns the number of root nodes in the tree
$countall$countall() Returns the total number of nodes in the tree
$currentnodeReturns an item reference to the currently selected node of the tree
$edittext$edittext([iColumnNumber=1,bSetCurrentField=kFalse]) invokes in place text editing for the current node (or Column) of the tree,when the node (or column) is enterable,and the tree is the current field or bSetCurrentField is kTrue
$expand$expand() Expands the nodes in the tree
$findnodeident$findnodeident(rNoderef,iIdent[,bRecursive=kFalse]) Returns a node if $ident matches
$findnodename$findnodename(rNoderef,cName[,bRecursive=kFalse,bIgnoreCase=kFalse]) Returns a node if $name matches
$findnodetag$findnodetag(rNoderef,cTag[,bRecursive=kFalse]) Returns a node if $tag matches
$firstReturns an item reference to the first root node of the tree
$getcolumnalign$getcolumnalign(iColumnNumber) gets the column alignment for the specified column
$getnodelist$getnodelist(listmode,rNoderef,lListname) gets a nodes contents from the passed list
$getnodetooltip$getnodetooltip(rNoderef) Called if $tooltip is empty,to get the tooltip to display when the mouse is over the node rNoderef.Returns either a styled text tooltip string,or an empty string (meaning use default)
$getselectednodes$getselectednodes(&lList) gets a list of item references to the selected nodes in the tree
$getvisibleline$getvisibleline(rItem) Returns the visible line number of the specified node
$getvisiblenode$getvisiblenode(iVisLine) Returns an item reference to a tree node based on the visible line
$movenode$movenode(rItem,rItemMoveAfter[,cChildModeConst]) moves rItem.rItem is moved according to kMoveNodexxx constants to .Returns kTrue if successful
$nextnode$nextnode(rItem,bRecursive) Returns the next node in the tree
$prevnode$prevnode(rItem,bRecursive) Returns the previous node in the tree
$remove$remove(rItem) deletes the specified child node
$sendevent$sendevent(iEvent[,eventParameters...]) Sends event iEvent (an ev... constant value) to the object with eventParameters passed as name,value pairs, for example $sendevent(evClick,'pLineNumber',2).Returns kFalse if the event is discarded
$setcolumnalign$setcolumnalign(iColumnNumber,[kLeftJst|kRightJst|kCenterJst]) sets the column alignment for the specified column
$setcurrentnode$setcurrentnode(rNoderef) sets the current node to the referenced node
$setnodelist$setnodelist(listmode,rNoderef,lListname) sets a nodes contents from the passed list
$showpanel$showpanel(iAction[,iMode=kSidePanelModeAuto]) executes kSidePanelAction... on a side panel object. iMode only applies to kSidePanelActionShow,and must be kSidePanelModeCover/Push/Auto. For JS client,$showpanel must be executed on the client
Standard$addafter $addbefore $findident $findname $redraw

Events

Object specific 
evWillHideSent to a field before it is hidden. Currently only used when the field is set as a side panel
Parameters
pEventCodeThe event code
pSidePanelIf true,this object is being hidden or shown as a side panel
evWillShowSent to a field before it becomes visible. Currently only used when the field is set as a side panel
Parameters
pEventCodeThe event code
pSidePanelIf true,this object is being hidden or shown as a side panel
StandardevAfter evBefore evCanDrop evClick evDisabled evDrag evDragBorder evDragFinished evDrop evEnabled evHidden evKey evMouseDouble evMouseDown evMouseEnter evMouseLeave evMouseUp evOpenContextMenu evRMouseDouble evRMouseDown evRMouseUp evSent evShiftTab evShown evTab evWillDrop

Children

Top 

$methods