TreeView Xojo plugin

TreeViewCustomNode.DrawBackground Event

Draws the background of a node.

DrawBackground(
   g as Graphics,
   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.
owner
The control that owns the node.

Remarks

If you want the default background drawing then leave this event empty.

If you do use this event then note that you are responsible for rendering all of the Node's background area. You cannot render only half of it for example and leave the other partially rendered.

When this event is used then internal background drawing of the node is canceled.

Background drawing is done before selection is applied.

See Also

TreeViewCustomNode Class