Segment.Icon

From Xojo Documentation

Property (As Picture )
aSegment.Icon = newPictureValue
or
PictureValue = aSegment.Icon

New in 2019r2

Supported for all project types and targets.

The Picture associated with the segment.

Notes

For best results, the icon should be 16x16 points.

Example

This code adds the icon to the first segment. The code is in the Initialized event of the SegmentedButton. The picture has been added to the project.

Var s As Segment = Me.SegmentAt(0)
s.Icon = Sunflower

See Also

SegmentedButton.