TreeView REALbasic Plugin

TreeViewCustomNode.DrawForeground Event

Draws the foreground of a node.

DrawForeground(
   g as Graphics,
   textYOffset as Integer,
   offset as Integer,
   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
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

Background drawing is done after selection is applied.

See Also

TreeViewCustomNode Class