weird bahavior of wxRadioBox.SetBackgroundCo lor()

OK thanks that's what I ended up doing and that works fine...
Oliver

···

> <when some event happens>
> radiobox.SetForegroundColor(newColor)
> radiobox.Refresh()
>
> Problem is, it doesn't work: the contents of the box
disappear, and only
> reappear if I minimize-maximize the application window (ie.
I cause a redraw
> I guess). Contents have the right color until the next
color change event,
> when the same thing happens.
>
> Is this not legal, or what am I missing? I'm using latest
2.4 wxwidgets on
> Win2k.

The wxRadioBox is implemented behind the scenes using several native
controls (the static box, and the individual radio buttons)
so you are
probably seeing some strange interactions because of that.
(And it may
even be different depending on the version of Windows that you use,
thanks to Microsoft.)

You might want to try building it without the radiobox, using a
staticbox and radiobuttons and then you'll have more control
over things
and should be able to do what you want.