1. Colin Cruikshank
  2. PowerBuilder
  3. Friday, 26 June 2020 20:05 PM UTC

Hi There,

Is it possible to set the background colour for grid datawindows to be different than all other datawindows in the theme.json file for PowerBuilder 2019 Build 2082? If not, is this a feature included in PowerBuilder 2019 r2?

Thanks,

Colin Cruikshank Accepted Answer Pending Moderation
  1. Monday, 29 June 2020 12:32 PM UTC
  2. PowerBuilder
  3. # 1

Thanks Ken. Sounds like an upgrade to r2 might be worth looking into.

Comment
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Sunday, 28 June 2020 05:26 AM UTC
  2. PowerBuilder
  3. # 2

Hi Colin,

 

UI Theme does not support set the background colour for grid datawindows to be different than all other datawindows.

Currently, Grid Style can support setting unselect/selected row background color, so if you want to change the background color for DW, we suggest that you can work it around by changing these two colors as shown below:

 

                                "grid-style":

                                {

                                                "drawing":true,

                                                "head-band":

                                                {

                                                                "background-color":"#0078D7",

                                                                "dwo-text-font":{"color":"#FFFFFF"}

                                                },

                                                "detail-band":

                                                {

                                                                "selected-row-text-color":"#000000",

                                                                "selected-row-background-color":"#CDE8FF",

                                                                "unselected-row-background-color":"#FFFFFF"

                                                },

 

If the above workaround does not meet your requirements, it’s recommended that you upgrade to PB 2019 R2, which supports custom Theme. You can set the background color of the specified DW in the specified window, not only Grid Style DW, but also any DW or other controls on the window. For details, please refer to the following link:

https://docs.appeon.com/appeon_online_help/pb2019r2/pbug/ch04s04.html#Configuring_theme_settings_for_individual_controls 

 

Regards,

Ken

 

Comment
There are no comments made yet.
Colin Cruikshank Accepted Answer Pending Moderation
  1. Friday, 26 June 2020 20:29 PM UTC
  2. PowerBuilder
  3. # 3

Thanks for the help. I tried applying the following hoping that it would set all grid datawindows to a black background and but it did not work. Did I miss something in the syntax?

"datawindow":
    {
    "drawing": true,

     "grid-style":
        {
      "drawing": true,
      "background-color":"#000000"

        }

     }

Comment
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Friday, 26 June 2020 20:09 PM UTC
  2. PowerBuilder
  3. # 4

You can overwrite the global theme settings on a per-object basis.  Take a look at the "Custom theme definition files for selected objects or controls" section of this tech article: https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/301-applying-a-new-ui-theme-to-your-application-2

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.