CustomButton Xojo Plugin

DesktopCustomRadioButton Control

LibraryDescription
"A radio button that is not based on the operating system theme."

DesktopUIControl
   DesktopCustomRadioButton

control DesktopCustomRadioButton

Properties

AcceptFocusThis property is for Mac only where focus is normally not active unless Full Keyboard access is on. Setting this to true activates focus support even if full keyboard access is not turned on in the system.F
AccessibilityLabelLabel used by the macOS accessibility manager for various of disability settings and devices.
AutoWidthThis property is to support components such as the FlowLayout. If set to true then the FlowLayout may resize the button.
BoldSets the text font to bold.
ButtonColorSets the body color of the button when button is enabled.
ButtonDownColorSets the body color of the button when button is pushed down.
CaptionSets or gets the text on the radio button.
DBBackColorFills background with custom color when in double buffering mode. (MacOS X and Linux systems are always double buffered by the OS it self)
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 buttons main body color when button is disabled.
DMDisabledTextColorSets the text 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.
DMTextColorSets the text color of the button when button is down in dark mode if SeparateDarkModeStyle 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.
DisabledTextColorSets the buttons text color when button is disabled.
DoubleBufferDoubleBuffers the drawing of the control on Windows systems. (MacOS X and Linux systems are always double buffered by the OS it self)
Enabled (Inherited) Determines if the control should be enabled when the owning window is opened.
FocusColorColor for the focus on the switch button.
FocusDrawingTypeConfigures how focus should be represented.
FontNameSets the text font
FontSizeSets the text font size.
FontUnitSets the unit of the FontSize.
Handle (Inherited) Returns a handle to the control.
HasDBBackColorIf set to true then the color defined in the DBBackColor property will be used as background color when in double buffer mode. (MacOS X and Linux systems are always double buffered by the OS it self)
HasTextColorIf set to true then TextColor, DMTextColor, DisabledTextColor and DBDisabledTextColor properties become active, else system will decide the color of the text.
Height (Inherited) The height (in points) of the control.
Index (Inherited) If the control is used in a control set, this specifies the control's index in the set.
ItalicSets the text font to italic.
Left (Inherited) The left side of the control in local coordinates (relative to the window)
MaxWidthThis property is to support components such as the FlowLayout. The property defines the minimum width the button may scale to.
MinWidthThis property is to support components such as the FlowLayout. The property defines the minimum width the button may scale to.
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.
TextColorSets the body color of the text on the checkbox when it is enabled.
Top (Inherited) The top of the control in local coordinates (relative to the window).
UnderlineSets the text font to underlined.
UseSystemFocusColorIf set to true then the button will attempt to use system focus color when possible, having fallback to the controls focus color.
ValueSets or gets the radiobutton value, true for checked, false for unchecked.
Visible (Inherited) Determines whether the control is visible when its owning window is opened. The default is True: the control is visible.
Width (Inherited) The width (in points) of the control.
Window (Inherited) The control's parent window.

Methods

Close (Inherited) Closes a control.
GetOptimalWidthReturns optimal width of the control for the text and settings that have been assigned to it.
PressVisually simulates mouse press on the radio button.
ReloadEventsReloads events if having used AddHandler to subscribe events.
SetFocus (Inherited) If applicable, sets the focus to the DesktopUIControl. KeyDown events are directed to the control.

Events

ConstructContextualMenu (Inherited) This event is called when it is appropriate to display a contextual menu for the control.
ContextualMenuItemSelected (Inherited) Fires when a contextual menuitem selectedItem was selected but the MenuItemSelected event and the MenuHandler for the DesktopMenuItem did not handle the menu selection.
DragEnter (Inherited) Fires when the passed DragItem enters the DesktopUIControl.
DragExit (Inherited) Fires when the passed DragItem exits the DesktopUIControl.
DragOver (Inherited) Fires when the DragItem is over the DesktopUIControl.
DropObject (Inherited) The item represented by Obj has been dropped on the control.
FocusLostThe radio button has lost the focus.
FocusReceivedThe radio button has gotten focus.
KeyUp (Inherited) Fires when the passed Key is released in the control that has the focus.
MouseDownThe mouse button was pressed inside the radio button or its text.
MouseDragThis event is fired when the mouse is dragged with the mouse button down on the control.
MouseEnter (Inherited) The mouse has entered the area of the control.
MouseExit (Inherited) The mouse has left the area of the control.
MouseMove (Inherited) The mouse has moved within the control to the coordinates passed. The coordinates are local to the control, not to the window.
MouseUpThis event is fired when the mouse button goes up.
MouseWheel (Inherited) The mouse wheel has been moved.
PreProcessStyleOverrides style attribute on the button right before rendering. The override is for current rendering and alter base properties of the button.
ValueChangedThe state on the CustomRadiobutton has been changed either by code or user interaction.

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