DesktopSegmentedButton.MacButtonStyle

From Xojo Documentation

Revision as of 20:25, 23 July 2021 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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