SegmentedControlItem.Icon

From Xojo Documentation

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

New in 2010r4

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 Open event of the SegmentedControl. The picture has been added to the project.

Dim s As SegmentedControlitem = Me.Items(0)
s.Icon = Sunflower

See Also

SegmentedControl.