TreeView Xojo plugin

DesktopTreeView.SelectionRendererDelegate Delegate (console safe)

Delegate to be used with the

SelectionRendererDelegate(
   node as TreeViewNode,
   g as Graphics,
   selectionColor as Color,
   x as Double,
   y as Double,
   width as Double,
   height as Double,
   actualWidth as Double,
   actualHeight as Double) as Boolean

Parameters

node
The node which needs the selection rendered.
g
Graphics to render in.
selectionColor
Color of the selection. Note TreeView will by default have set this color for you in the Graphics context.
x
X coordinate for the selection box. (If full row selection is not on then it might not be the whole row).
y
Y coordinate for the selection box. (If full row selection is not on then it might not be the whole row).
width
Width of the selection.
height
Height of the selection.
actualWidth
Actual width of the selection. This is because if not in full row selection mode then not the whole cell is painted. But This parameter will give you the full width of the cell.
actualHeight
Actual height of the selection. This is because if not in full row selection mode then not the whole cell is painted. But This parameter will give you the full height of the cell.

Returns

Boolean
You need to return true to cancel internal rendering. If returning false then internal selection renderer will render after yours renders.

Remarks

See Also

DesktopTreeView Control