How to change widget style

Is it possible at runtime to change the named style of a widget?

Obviously the system supplies some automatic conditions of its own under which this can be done - such as ::mouseover ::selected etc. However I want to create a wider variety of styles and apply them under different circumstances.

Currently I end up duplicating the widget in a different style and then showing/hiding as appropriate but I’m sure there must be a better way than this.

2 Likes

Not currently possible I’m afraid - you can use selected styles to handle one or two variants, but if you need more than, the closest you can get is using Dynamic Panels. Once you’re practiced with them they can be pretty fast and effective, but they can be a pain to manage.