TreeView Xojo plugin

TreeViewCustomNode.DrawForeground Event

Draws the foreground of a node.

DrawForeground(
   g as Graphics,
   ByRef textYOffset as Double,
   offset as Double,
   owner as TreeView)

Parameters

g
The graphics context to draw into. Use the g.Width and g.Height to get the size of the background to draw.
textYOffset (ByRef parameter)
Use this ByRef parameter to alter where text is drawn. For example then textYOffset = textYOffset - 2 will move the text up by 2 pixels.
offset
This parameter will give hint on how many pixels the node is indented in the tree.
owner
The control that owns the node.

Remarks

See Also

TreeViewCustomNode Class