This can be done using property nodes, but it would be hugely convenient if the formatting for a enum could be associated with its value.
As a workaround you can use a tab control to achieve that without coding.
To do your example, create a tab control with 3 pages, name them Good, Bad, Ugly.
Right click > Visible Items > Page Labels Display :: This is your enum
Right click > Visible Items > Tabs :: Hide the tabs
Make the tab background transparent. Put a square decoration inside each tab, color them Green, Red and Blue as you like.
Make your enum background transparent. Put in over your tab, align the three colored decorations with your enum control.
When you change the enum, the color follows.
It's less code and more UI struggle, but it's just an idea.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.