1. Mark Jones
  2. PowerBuilder
  3. Tuesday, 5 July 2022 20:15 PM UTC

https://docs.appeon.com/pb/whats_new/UI_Theme_enhancements.html

I am hoping someone will be able to clarify the upcoming PB 2022 theme enhancements for me. Right now we have two different visual user objects inherited from the datawindow object. Currently with themes applied to a datawindow we lose the ability to change the background color of checkboxes and radiobuttons (even if we are not explicitly using themes for those edit types) - for the most part that is not an issue for us but in one case it is. With the 2022 enhancement will it be possible to have one userobject type inherited from datawindow use themes and one not use themes? It was not clear from the description of the enhancement. One additional note on this - we are creating these userobjects dynamically (using OpenUserObject) at runtime. Does that effect the way the themese are applied.

So basically it would be:

uo_dw_base userobject is inherited from datawindow and would use themes
and
uo_dw_data_entry userobject is inherited from datawindow and would not use themes (and the actual objects are dynamically created on windows at runtime)

Thanks,

                   Mark

   

Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Thursday, 7 July 2022 09:39 AM UTC
  2. PowerBuilder
  3. # 1

Hi Mark,

PB 2022 already supports setting property expression of Checkbox and RadioButton's Text Color, but does not support setting background color.

You can set the background color by placing a Rectangle Object behind the Checkbox and Radio Button column.  Note: The Checkbox and Radio Button columns need to be transparent.

Below is my test result in PB 2022. It uses the Dark Theme and has set the color of the Checkbox and Radio Button in DW:

Regards,

Ken

 

Comment
  1. Sivaprakash BKR
  2. Friday, 8 July 2022 10:44 AM UTC
Won't an option like 'OVERRIDE THEME (Yes/No)' in the datawindow properties solves this issue?
  1. Helpful
There are no comments made yet.
Mark Jones Accepted Answer Pending Moderation
  1. Wednesday, 6 July 2022 13:31 PM UTC
  2. PowerBuilder
  3. # 2

Ken,   thanks for the quick response!  To be honest , if the themes supported background color and background expressions for checkboxes and radiobuttons we would not even need any more theme enhancements.   We are trying to workaround this problem.  With our application our customers design their own data entry screens using Infomaker,  then in production we pull in these datawindows, dynamically modify the datawindows to add background color expressions to each field to show status.   So for example a field with a red background has an issue,  a green background means the field had an issue that has been resolved.   We have been using this technique since 1997 and I do not think our customers will be wild about us changing the way we indicate issues.    We could dynamically add a background rectangle behind the radio buttons and checkboxes but this is a change compared to what we currently use.

Here is how it would have to work with themes style radiobuttons and checkboxes where we dynamically create a background rectangle. Unfortunately it will always look like a border since the checkbox/radiobutton background is always white (with themes):

 

 

Here is what we currently have:

 

Is there a possibilty that Appeon would provide theme support for radio button and checkbox background colors and background color expressions in the future?

Thanks, Mark

Comment
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 6 July 2022 03:26 AM UTC
  2. PowerBuilder
  3. # 3

Hi Mark,

You can find the following description in this document:
https://docs.appeon.com/pb2022/pbug/Specifying_application_properties.html#Configuring_the_custom_theme 
“The user object indicates the custom visual user object only (not the external or standard visual user objects). And the user object which is dynamically created via OpenTab or OpenUserObject method is unsupported to have their own theme settings. Standard visual user objects can have theme settings only when it is placed into the custom visual user object and customized through the container.”

Therefore,
1. The standard visual user object inheriting from datawindow (such as u_dw) is unsupported to have a custom theme. But you can put u_dw in a custom user object to make it u_custom_dw, so that you can customize the theme for u_custom_dw.dw_1 in theme-xxx.json.
2. The user object dynamically created via OpenUserObject is unsupported to have a custom theme.

I have sent the above two limitations of Theme as requirements to the product team, hoping they can support them in future versions.

Regards,
Ken

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.