From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
Used to get or set the selected segment number. The first segment is numbered zero.
A value of -1 means no selection. SelectedSegmentIndex may be set using the Properties pane to set the default value of the SegmentedButton control. SelectedSegmentIndex is only useful when SelectionStyle is set to Single. SelectedSegment will provide you with the Segment for the selected segment.
For multi-selection SegmentedButtons this returns the last segment that was selected.
The following example changes the selected segment to the third segment: