-
-
Notifications
You must be signed in to change notification settings - Fork 10
Crow.EnumSelector
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
EnumSelector
public class EnumSelector : TemplatedControl
⬜ | prototype | description |
---|---|---|
EnumSelector (Interface iface) |
__ |
⬜ | 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. |
⬜ | prototype | description |
---|
⬜ | name | description |
---|