SegmentedButton

Xojo provides a SegmentedButton control for desktop, mobile and web projects:

Common members

These events, methods and properties are both common amongst the desktop, mobile and web versions of the control and are the most commonly used. See the individual controls for more members and details.

Events

Name

Description

Pressed

A segment was pressed.

Methods

Name

Description

AddSegment

Adds a segment to the SegmentedButton. Not currently supported for web projects.

AddSegmentAt

Adds a segment to the SegmentedButton at the index passed. Not currently supported for web projects.

RemoveAllSegments

Removes all segments from the SegmentedButton. Not currently supported for web projects.

RemoveSegmentAt

Removes the segment at the index passed from the SegmentedButton. Not currently supported for web projects.

SegmentAt

Returns the segment at the index passed.

Properties

Name

Description

SegmentCount

The number of segments.

SelectedSegment

The segment that is currently selected.

SelectedSegmentIndex

The index of the segment that is currently selected.