Skip to main content

TcxSpeedButtonOptions.AllowAllUp Property

Specifies the behavior of the button in a group.

Declaration

property AllowAllUp: Boolean read; write; default False;

Property Value

Type Default
Boolean False

Remarks

This property is in effect for group buttons – the buttons whose GroupIndex property is set to a value greater than 0, specifying the group by its index. Normally, if any group button is pressed, pressing it or switching its Down property to False does nothing at runtime – the button remains pressed until another button in the group is pressed. To remove this limitation and allow the pressed button to return to the normal state, set the AllowAllUp property to True. Since the AllowAllUp property value is synchronized across all buttons in the group, you can access any of them to switch the value. If the AllowAllUp property is set to False, at least one button is always pressed in the group. Note that you can set the Down property to False at design time regardless of the AllowAllUp property setting if the button Action property is unassigned. Refer to the Down property description to learn more.

The AllowAllUp property is similar to the AllowAllUp property of standard VCL TSpeedButton controls. To mimic the behavior of these controls, disable the CanBeFocused option.

The default value of the AllowAllUp property is False.

See Also