segmentedcontrol - add n remove segments at runtime ?

Is it possible to delete and add new segments to segmentedcontrol at runtime ?
thanks

http://documentation.xojo.com/index.php/SegmentedControl.Segments

Doesn’t look like it :frowning:

For web apps, you can change WebSegmentedControl.SegmentCount to add or remove segments to the end.

For desktop apps, it looks like you can add or remove segments to the Items array:

[code] // Create new segment
Dim si As New SegmentedControlItem
si.Title = “New Segment”

// Add to items
SegmentedControl1.Items.Append(si)

// Increase width so it is visible
SegmentedControl1.Width = SegmentedControl1.Width + 100[/code]