1. Jeong Hwan Jang
  2. PowerBuilder
  3. Tuesday, 21 November 2023 05:49 AM UTC

Hi, everyone.

I'm using PB 2019 r3 and I'm trying to change background color of one column header in datawindow applying UI theme as below.
(I want to change red circle one). 



So, I wrote a script like this in open event.

    dw.modify("column_5_t.background.mode = '0'")
    dw.modify("column_5_t.background.color ='134217739~trgb(10, 10, 255)'")

but it doesn't work.   

How can I do this?

I'm looking forward to your help.

Best regards,

Jang

Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 21 November 2023 14:39 PM UTC
  2. PowerBuilder
  3. # 1

Hi Jeong,

 

Theme settings override DW visual properties, so you'll need to make edits to your theme's JSON file. Please see the following documentation page for help on how to do that: https://docs.appeon.com/pb2022r2/pbug/Specifying_application_properties.html#Configuring_the_custom_theme

 

Regards,
Francisco

Comment
  1. Jeong Hwan Jang
  2. Wednesday, 22 November 2023 01:10 AM UTC
Hi Francisco,



Thank you for your answer.



I'll try to edit the JSON file and I want it to work.



Regards,

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