Issue with Control sets in Linux

I create a variable number of buttons by using a Control Set containing one button, and then adding buttons to it as needed, as the app runs. These are in effect radio buttons, with one “pressed” and the other not. On macOS/Win I use Invalidate() to get a button repainted, as necessary. This approach works well here.

On Linux, however, the paint event is never called. So although the buttons are present, they are not visible. I know the buttons are actually there, as clicking where a button should be has the appropriate effect.

The Invalidate() does happen; I’ve stepped through that with the debugger. So what is it about this setup that causes it to fail under Linux?

I remember now that I submitted a case for this: <https://xojo.com/issue/58734>

And it was marked: Reproducible on 20th Feb this year. So what’s the story?

1 Like

I’ve the same problem, posted here HELP! Instance of Rectangle inside ContainerControl not shown in Linux App

It’s crazy no one is taking care of that

No one like to hear it, but this works for my apps:

newControl.Invalidate
For x = 0 to 4
  App.DoEvents(10)
Next

Sometimes a man gotta do what a man gotta do.

Fourth Tim in the thread, just stopping by.

3 Likes

I just ran into this bug myself. It was reported two years ago and still not fixed?

If Xojo doesn’t use a feature, it doesn’t get any attention.

1 Like