Skip to content
Jean-Philippe Bruyère edited this page Oct 26, 2021 · 2 revisions

Convenient widget for selecting value among enum values. This is a templated control expecting a 'Group' widget named 'Content' inside the template to handle the enum values display.

Instanced RadioButton's names are set to enum values, and Tags are populated with a string build with 'IconsPrefix+EnumValueName+IconsExtension to ease associating icons with values. There's many other way to use this control, for examples see 'testEnumSelector.crow' in the samples directory.

namespace: Crow

Inheritance Hierarchy

  • EnumSelector

Syntax

public class EnumSelector : TemplatedControl

Constructors

prototype description
EnumSelector (Interface iface) __

Properties

name description
BitFieldExcludeMask Include mask for bitfields. Used to ignore enum values in display.
EnumValue Current Selected Value(s).
ForceRadioButton if enum has the 'Flag' attribte, CheckBox will be used. RadioButton may still be forced by setting 'ForceRadioButton'='true'
IconsExtension __
IconsPrefix __
ItemStyle Enum values are presented with RadioButton or CheckBox controls. Here you may specify a template to use for the radio buttons.
RadioButtonStyle Enum values are presented with RadioButton or CheckBox controls. Here you may specify a template to use for the radio buttons.

Methods

prototype description

Events

name description
Clone this wiki locally