1. Sathishkumar S
  2. PowerBuilder
  3. Friday, 5 April 2024 11:52 AM UTC

Hi All,

I have applied the theme for the application using PowerBuilder 2022 R3 Build 3305.

I have two user objects. In one object, I am able to disable the theme for the data window (tp_grid), but in the other, I am not able to disable the theme(tp_master).

Two objects: 'tp_grid' containing 'dw_1' and 'tp_master' containing 'dw_1'.

I have an additional theme file named 'theme-custom.json' where I have the following code to disable the theme for datawindows.

{
"meta-info":
{
"version":"22.2.0.3305"
},
"tp_grid.dw_1":
{
"drawing":false
},
"tp_master.dw_1":
{
"drawing":false
}
}

theme change disabled for "tp_grid.dw_1": but not happening for "tp_master.dw_1":

tp_grid is a user object which is inside another user object

forward
global type tp_grid from u_tabpg
end type
type dw_1 from u_dw within tp_grid
end type
end forward

tp_master is a user object open dynamically from the code

forward
global type tp_master from u_tabpg
end type
type pb_saveclose from u_pb_saveclose_small within tp_master
end type
type pb_schedule from picturebutton within tp_master
end type
type cb_1 from commandbutton within tp_master
end type
type dw_nav from u_dw within tp_master
end type
type r_header from rectangle within tp_master
end type
type dw_1 from u_dw within tp_master
end type
type pb_close from u_pb_close2_x_small within tp_master
end type
type ds_master from n_ds within tp_master
end type
end forward

I am not sure what I am missing here, how to disable the datawindow theme for dw in both user objects?


Thank you,
Sathsihkumar S

kitty he @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 10 April 2024 08:05 AM UTC
  2. PowerBuilder
  3. # 1

Hi Sathsihkumar S,

 

In the Theme.json file, there is a configuration item called "background-color-enabled". If you do not wish to use the background color provided in the theme, you can disable this option. By doing so, all background colors for DW in your application can use the settings you have in the IDE.

 

Although dynamically loaded controls do not support customization, changes made in the theme.json file will still take effect.

 

Regards,

Kitty

Comment
  1. Sathishkumar S
  2. Wednesday, 10 April 2024 13:03 PM UTC
Hi Kitty,



Thank you.

I have tried to disable the background-color option, but it doesn't look good as it creates too much contrast. (window or user object backgrounds are showing white and datawindow backgrounds are showing button face).



Could you please let me know if there are any plans to include options for customizing the theme for datawindows when the objects are opening dynamically, in future versions PB2025?



Thank you,

Sathsihkumar S

  1. Helpful
  1. kitty he @Appeon
  2. Thursday, 11 April 2024 03:09 AM UTC
Hi Sathsihkumar S,



We plan to support this in PB2025, but which specific release of PB2025 is not yet determined. Thank you for your support and attention to this feature.



Regards,

Kitty

  1. Helpful
  1. Sathishkumar S
  2. Thursday, 11 April 2024 15:28 PM UTC
HI Kitty,



Thank you, we will wait for it.



Thank you,

Sathishkumar S
  1. Helpful
There are no comments made yet.
kitty he @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 9 April 2024 02:42 AM UTC
  2. PowerBuilder
  3. # 2

Hi Sathsihkumar,

 

Currently, the customization of a DataWindow's UI does not support dynamically loading controls. If two DataWindows are statically placed, there shouldn't be any issues.

 

Regards,

Kitty

Comment
  1. Sathishkumar S
  2. Tuesday, 9 April 2024 09:34 AM UTC
Hi Kitty,



If I open a user object dynamically and the Datawindow is inside the user object, then it is not possible customize that Datawindow? Is there any workaround in that case?



What I actually want to change in the datawindow is its background. Currently, it's based on a theme, but I prefer to keep the datawindow background as default. Is there any way to set this up?



Is it possible to define the color of the datawindow when the theme is applied as below?

In the datawindow constructor

this.object.datawindow.color = rgb(254, 252, 171)



We have applied theme to the application almost everything working fine, only 2 datawindows having background color issue.



Thank you,

Sathsihkumar S
  1. Helpful
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.