Hi Andreas
What is the exact version of PB you are using?
- PB2021 and PB2022. I tried both and the result was always same. So I think this is intentional.
What are those cases?
- Anything where you need a user's focus at the button. Like:
There are new records or events touching this topic
There are new replies to this thread
The time is Over (at button 'Done' in a tasklist)
Maybe you could achieve what you want with inheritance and custom themes...
- I'm not sure I understand you. The idea is: The button has to be red if some conditions based on the business logic are met. Otherwise the theme color is used.
- I've observed that for columns the theme is applied only at the creation point. So I can easily modify background.color. For buttons this is not possible (or I haven't found how to do it).
- Of course it would be nice to have classes for datawindow objects like CSS class in HTML and power to change the class with "modify" or datawindow expressions. But this is not there at this time.
Another option is:
- disable button theme
- take the button color from currently used theme and set buttons in window open event
- apply the color-changing business logic.