SegmentedControl.Action

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Event


SegmentedControl.Action(itemIndex As Integer)

New in 2010r4

Supported for all project types and targets.

One of the buttons was clicked or otherwise activated.

Notes

Test the itemIndex to determine which segment was clicked:

If itemIndex = 0 Then
// Do something
Else
// Do something
End If