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
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