Apologies to everyone but as a company that has been using Powerbuilder for more than 20 years and we were excited for the themes hence rant below:
Well, we have been disappointed by Powerbuilder again. We were excited to use themes to give our application a little sprucing up but have found that they are for the most part useless to us! We will be able to use the scroll bars and sliders and not much else.
1) Themes are not applied to user objects - any sophisticated application tends to use a lot of user objects!
2) Using a theme on a datawindow object replaces any datawindow expressions you might have to dynamically control color etc. Again any mature powerbuilder application probably has a lot of code that is written to control colors etc of object dynamically using datawindow expressions.
3) Radiobuttons and checkboxes are forced to right text if themes are applied.
It would be wonderful if the themes had not been implemented on an all or nothing basis. For example if you edit the json file and removed the background color attribute completely for a dwo.column then it would keep using the original value programmed or "modified" on the datawindow but instead it just uses a default value. Or you could turn off the theme in script for a specific object.
All we ever wanted was for Powerbuilder to have modern looking checkboxes and radiobuttons so our application does not look like it came from the 1990s.
WHAT TO DO?
I think we can create user objects to make modern looking replace window level radiobuttons and checkboxes but for a datawindow it is a little trickier.
A lot of our datawindows are dynamic or created by our customers so this would need to be done at run time.
We could creating code to dynamically switch out dw radio buttons with pictures and then have ancestor click event code for the pictures to emulate radio buttons but I see it as being challenging.
Has anyone got any other workarounds for datawindow checkboxes or radiobuttons?