SegmentedButton.AddSegment
From Xojo Documentation
Method
SegmentedButton.AddSegment(segment As Segment)
New in 2019r2
Supported for all project types and targets.
New in 2019r2
Supported for all project types and targets.
Adds Segment as a new segment at the end of the control.
Example
The following example in the Open event of the control adds a segment to it: