TreeView REALbasic Plugin

TreeView Control

The TreeView REALbasic control allows to display tree structured data in a TreeView control.

RectControl
   TreeView

control TreeView

Properties

BackColorSets or gets the background color of the control.
CancelEventActionSetting this property to true from within certain events will cancel their internal handling.
ColumnCountSets the number of columns that the TreeView should have.
DragReceiveBehaviorUse this property to control what nodes can receive drag on them.
HasHeaderWhen set to true then the TreeView will have column headers.
HasInactiveSelectionColorSet this property to true to let the TreeView control use a custom Selection Color when the control is inactive.
HasSelectionColorSet this property to true to let the TreeView control use a custom Selection Color.
HorizontalScrollbarValueSets or gets the value for the horizontal scrollbar.
InactiveSelectionColorSets or gets the color of the selections when the control is inactive.
LinuxDrawTreeLinesSet to true if the control is supposed to have Tree Lines when running on Linux systems.
LinuxExpanderStyleDefines the look and feel of the Expander when running on Linux systems.
LinuxHighlightFullRowSet to true to highlight the entire row when running on Linux systems.
LockDrawingTo set or get LockDrawing value.
MacDrawTreeLinesSet to true if the control is supposed to have Tree Lines when running on MacOS systems.
MacExpanderStyleDefines the look and feel of the Expander when running on MacOS systems.
MacHighlightFullRowSet to true to highlight the entire row when running on MacOS systems.
MultiSelectionIf set to true then the control will allow selecting of multiple nodes.
NodeEvenColorSets or gets the background color of even numbered nodes.
NodeHeightSets or gets the height of the nodes in the TreeView control.
NodeOddColorSets or gets the background color of odd numbered nodes.
QuartzShadingIf set to true then the selection will be shaded when running on MacOS X Mach-O targets.
RootNodeCountReturn the count of nodes on root level.
SelectedIndexGets the index of the last node to be added to the selection.
SelectionColorSets or gets the color of the selections.
SelectionSeparatorDecides if selected nodes should have separator between them or not.
TextFontSets or gets the controls TextFont.
TextSizeSets or gets the controls Text size.
UseFocusRingThis property is used to determine if the TreeView should show a focus ring or not.
VerticalScrollbarMaxGets the maximum value from the Vertical Scrollbar.
VerticalScrollbarValueSets or gets the value for the vertical scrollbar.
WinDrawTreeLinesSet to true if the control is supposed to have Tree Lines when running on Windows systems.
WinHighlightFullRowSet to true to highlight the entire row when running on Windows systems.

Methods

AddToSelectionAdds a node to the existing selection when in Multiselect mode.
AppendNodeAppends a top level node to the TreeView control.
AppendNodeAppends a child node to the TreeView control.
ColumnHeaderTextSets or gets the header text for a specific column header.
ColumnWidthSets or gets the column width for a specific column.
GetMeasureRetrieves a measurement from a given measurement constant from the TreeView.
GetNodeParentGets a parent node from a given node.
InsertNodeInserts a top level node to the TreeView control.
InsertNodeInserts a child node to the TreeView control.
NodeFromPointFinds a node and or control part from a given point.
NodesOnScreenReturns nodes which are on screen (Expanded) as ObjectArray.
RefreshRefreshes the control.
RemoveAllNodesRemoves all nodes from the TreeView control.
RemoveFromSelectionRemoves a node from the existing selection when in Multiselect mode.
RemoveNodeRemoves a node from the TreeView.
RootNodesReturns a node at a root level from a given index that is relative to the parent node.
ScrollNodeToViewScrolls a node into view.
SelectedNodeGets the node that was last added to selection.
SelectedNodesReturns the selected nodes in a ObjectCollection.
SwapSwaps root level nodes in the tree.

Events

AfterMouseDownThis event is fired after all handling of MouseDown is complete, including repaint if needed.
BeforeNodeCollapsingThis event is fired when a node is about to collapse.
BeforeNodeExpandingThis event is fired when a node is about to expand.
BeginDragNodeThis event is fired when the user begins to drag a node.
DragExitThis event is fired when a drag item exits the control.
DragOverThis event is fired when a DragItem is over the control.
DragOverNodeThis event is fired when a DragItem is dragged over a node.
DropObjectThe item represented by obj has been dropped onto the control.
GotFocusThis event is fired when the control receives focus.
HeaderClickThis event is fired when the header is clicked.
KeyDownThis event is fired when a keyboard key is hit when the Grid has the focus.
LostFocusThis event is fired when the control looses focus.
MouseDownThis event is fired when the mouse button goes down on the control.
MouseDragThe MouseDrag event is fired when a mouse drag event is generated within the control.
MouseExitThis event is fired when the mouse exits the control.
MouseMoveThis event is fired when the mouse is moved over the control.
MouseUpThis event is fired when the mouse button goes down on the control.
NodeActionThis event is fired when actions are performed on special nodes, such as for example when a Checkbox is clicked on a TreeViewCheckboxNode.
NodeCollapsedThis event is fired after a node has collapsed.
NodeDoubleClickThis event is fired when a node gets double clicked.
NodeExpandedThis event is fired after a node has expanded.
NodeMouseDownThis event is fired when the mouse is clicked on a node.
SelectionChangedThis event is fired when the selection changes.

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86