DesktopSegmentedButton.AddSegment
From Xojo Documentation
Method
DesktopSegmentedButton.AddSegment(segment As Segment)
New in 2021r3
Supported for all project types and targets.
New in 2021r3
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 Opening event of the control adds a segment to it: