DesktopSegmentedButton.MacButtonStyle

From Xojo Documentation

Property (As Integer )


aDesktopSegmentedButton.MacButtonStyle = newIntegerValue
or
IntegerValue = aDesktopSegmentedButton.MacButtonStyle

New in 2021r3

Supported for all project types and targets.

Controls the appearance of the DesktopSegmentedButton 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 Opening event of the control but will only take effect when building for macOS. It sets the style to Rounded.

Me.MacButtonStyle = DesktopSegmentedButton.MacButtonStyles.Rounded