TreeView Xojo plugin

DesktopTreeView.SetCheckboxRenderer Method

Sets custom renderer for checkboxes.

SetCheckboxRenderer(
   renderer as Object)

Parameters

renderer
Any object which has method with the following signature:

Draw(g as Graphics, left as double, top as double, isDarkMode as Boolean, isEnabled as Boolean, isActive as Boolean, isFocused as Boolean, isPressed as Boolean, visualState as Integer)

And Height and Width as Double properties.

Remarks

You can in the open event of the TreeView set a custom renderer like:


me.SetCheckboxRenderer(new CustomCheckBoxRenderer())



In this example we have set the renderer to use the checkbox renderer from the Einhugur CustomButton plugin.

You can also define your own renderer to use.

See Also

DesktopTreeView Control