SegmentedButton.MacButtonStyle

From Xojo Documentation

Property (As Integer )


aSegmentedButton.MacButtonStyle = newIntegerValue
or
IntegerValue = aSegmentedButton.MacButtonStyle

New in 2019r2

Supported for all project types and targets.

Controls the appearance of the SegmentedButton on macOS.

Notes

Use MacButtonStyles to set/get this property.


Not all button styles are available on all versions of macOS.

Automatic.
Capsule.
Round Rect.
Rounded.
Textured Rounded.
Textured Square.
Small Square.

Sample Code

This code is in the Initialized event of the control but will only take effect when building for macOS. It sets the style to Rounded.

Me.MacButtonStyle = SegmentedButton.MacButtonStyles.Rounded