Disable file option for button widget ?

Hi,

a question about Button Widget :

I can enable or disable touch events on my button with the “isEnabled” option. Ok.

I can specify “defaultFile” and “overFile”. Ok.

But what about this case :

I disable touch events on my button with “setEnabled” function, and I would like my button to have a specific image for this specific state.

Why there is not a “disableFile” option for the widget ?

Or maybe I miss something?

Thanks for your help :slight_smile:

Olivier

Hi Olivier,

This state isn’t currently built into the button widget, so you’d have to add it yourself (via the open-source code), or figure out another way in your code to “dim” the button or similar. Sorry for the inconvenience.

Best regards,

Brent

Ok Brent 

thanks for your answer

Best

Olivier

Hi Olivier,

This state isn’t currently built into the button widget, so you’d have to add it yourself (via the open-source code), or figure out another way in your code to “dim” the button or similar. Sorry for the inconvenience.

Best regards,

Brent

Ok Brent 

thanks for your answer

Best

Olivier