Set Widget button fill color ("over" value) after creation

Hello,

Does anyone know if it’s possible to change a widget’s “over” color (the color it turns when pressed) after creation?

I’m changing the fill color of the button with setFillColor, but the over color remains unchanged. I’d rather not re-create the button every time I need to change the color.

Thanks
Andy :slight_smile:

Not directly. There are some private variables that you can access to get to the physical display object that you could apply your setFillColor to, but this isn’t recommended. I think it’s:

yourButton._view

or something like that.

Rob

Not directly. There are some private variables that you can access to get to the physical display object that you could apply your setFillColor to, but this isn’t recommended. I think it’s:

yourButton._view

or something like that.

Rob