CustomButton Xojo Plugin

CustomCheckBoxRenderer Class

A class to Render all states of a CustomCheckbox to a Graphics context.

You can use this class to render checkboxes in your custom controls, additionally then Einhugur TreeView 8.6 or later can optionally use this renderer for its checkboxes in the TreeView.

Object
   CustomCheckBoxRenderer

class CustomCheckBoxRenderer

Properties

ButtonColorSets the body color of the button when button is enabled.
ButtonDownColorSets the body color of the button when button is pushed down.
ButtonShapeConfigures the shape of the button, Rounded or Rectangular.
DMButtonColorSets the body color of the button when button is down in dark mode if SeparateDarkModeStyle is set to true.
DMButtonDownColorSets the body color of the button when button is down in dark mode if SeparateDarkModeStyle is set to true.
DMDisabledButtonColorSets the body color of the button when button is disabled in dark mode if SeparateDarkModeStyle is set to true.
DMFocusColorColor for the focus on the button when button in dark mode if SeparateDarkModeStyle is set to true.
DMOffButtonColorColor of the button when it is off when system is in dark mode and SeparateDarkModeStyle property is set to true.
DMUseSystemFocusColorWhen system is in dark-mode and SeparateDarkModeStyle is set to true then If this property is set to true then the button will attempt to use system focus color when possible, having fallback to the controls focus color.
DisabledButtonColorSets the buttons main body color when button is disabled.
FocusColorColor for the focus on the checkbox.
FocusDrawingTypeConfigures how focus should be represented.
HeightReturns height of the rendering. (Read only property)
OffButtonColorColor of the button when it is off.
SeparateDarkModeStyleIf set to true then the color style properties from the DM (DarkMode) named properties will be used when the system is in Darkmode.
UseSystemFocusColorIf set to true then the button will attempt to use system focus color when possible, having fallback to the controls focus color.
WidthReturns width of the rendering. (Read only property)

Methods

DrawDraws CustomCheckbox into graphics context.

Constants

Version = 4.74

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit