SegmentedButton Doesn't Respond Twice

I have a segmented button with two segments. In the pressed event there is one line to call a method. I have a break point there. Upon entering the screen, one segment is selected.

I click the other segment and I get into the pressed event. At this point clicking the segments changes what appears to be selected but we don’t get back into the pressed event (the break point doesn’t break).

-Bob

This is a known bug: <https://xojo.com/issue/62176>

Fabian,

The bug you referenced refers to the web version. Apparently this bug is contagious.

However, for mobile I found a work around: In the Pressed event I simply set the selectedSegmentIndex to the value passed in:

me.SelectedSegmentIndex = segmentedIndex

It now appears to work.

-Bob

1 Like