Deactivate a segmented control?

Hi,
If I have 2 different segmented controls on a window - how can I turn off the selection on one segmented control, when I click on the other?

At the moment, as soon as I click on both segmented controls, I then have 2 selected items (1 for each segmented control)?
I have looked at the Active property in the language reference, but that seems to be read only, and it also states that the AutoDeactivate property occurs when the window is deactivated.

Hope that made sense.

Thank you.

[quote=117091:@Richard Summers]Hi,
If I have 2 different segmented controls on a window - how can I turn off the selection on one segmented control, when I click on the other?

At the moment, as soon as I click on both segmented controls, I then have 2 selected items (1 for each segmented control)?
I have looked at the Active property in the language reference, but that seems to be read only, and it also states that the AutoDeactivate property occurs when the window is deactivated.
[/quote]

Why did you set selection type to multiple, instead of leaving the default Single in the inspector ?

Michel - I have 2 different segment controls (not 2 selected items in the same control) :slight_smile:

I have since solved it:

SegmentedControl1.items(0).selected = false SegmentedControl1.items(1).selected = false SegmentedControl1.items(2).selected = false