Segment.Tooltip

From Xojo Documentation

Property (As String )
aSegment.Tooltip = newStringValue
or
StringValue = aSegment.Tooltip

New in 2019r2

Supported for all project types and targets.

The tooltip associated with the segment.

Examples

This example sets the tooltip of the first segment. It is in the Open event of the SegmentedButton.

Var s As Segment = Me.SegmentAt(0)
s.Tooltip = "This is the first segment."


This example displays the tooltip when the segmented is pressed. It is in the Pressed event of the SegmentedButton.

Select Case segmentIndex
Case 0
Var s As Segment = Me.SelectedSegment
MessageBox(s.Tooltip)
Case 1
// execute code for this item..
Case 2
// execute code for this item..
Else
MessageBox("some other case happened somehow.")
End Select