1. Vladimir K.
  2. PowerBuilder
  3. Friday, 24 April 2020 14:11 PM UTC

Hi all.

PB2019R2

Is there is the way to change a color of the selected row in datawindow?

I think i did see something or hear something about modifying something for drop down listbox in theme.json file.

Or maybe i am just delusional. :roll:

Anyway, help will be greatly appreciated.

Thank you.

Simcerely

Vlad

Who is viewing this page
Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 24 April 2020 19:03 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Vlad;

  Yes, you can control both the Detail Band's selected and unselected row colourization in a JSON theme file ...

HTH

Regards ... Chris

Comment
There are no comments made yet.
Vladimir K. Accepted Answer Pending Moderation
  1. Thursday, 30 June 2022 14:27 PM UTC
  2. PowerBuilder
  3. # 1

Hi all, what am i doing wrong?

Let's say i want a color of the selected row be "red alike", so

i pick hex value for this color ( 001.jpeg )

i open .json for a theme we are using and search for a "selected-row-background-color" ( 002.jpeg )

i found right place, changed value and saved .json ( 003.jpeg )

i add messagebox to verify them i am using ( 004.jpeg )

color is still blue ( 005.jpeg )

we still on PB2019R2 and i am sure it worked before, on win 7 machine, i tested, but we never got around to put it into the app

 

Any help will be greatly appreciated.

Thank you

 

Attachments (5)
Comment
  1. Ronnie Po
  2. Thursday, 30 June 2022 15:46 PM UTC
Hi Vlad,

Based on your screenshot, in the section for "grid-style", change

"drawing": false

to

"drawing": true



  1. Helpful 1
  1. Vladimir K.
  2. Thursday, 30 June 2022 15:54 PM UTC
Hi Ronnie.

Thank you very match.

It works now.

Greatly appreciated.
  1. Helpful
There are no comments made yet.
Vladimir K. Accepted Answer Pending Moderation
  1. Friday, 24 April 2020 21:01 PM UTC
  2. PowerBuilder
  3. # 2

note++

i have it ... why i did not use it ? i don't know.

Thank you Chris

Comment
There are no comments made yet.
Vladimir K. Accepted Answer Pending Moderation
  1. Friday, 24 April 2020 20:25 PM UTC
  2. PowerBuilder
  3. # 3

Hi Chris.

Greatly appreciated, works like a charm, exactly what we looking for.

May i ask, what do you use to edit .json ?

I been using a notepad, but screenshot of your editor looks need.

Thank you.

Comment
  1. Chris Pollach @Appeon
  2. Friday, 24 April 2020 20:54 PM UTC
That is Awesome news Vlad!

FWIW: I use FireFox for the initial JSON display & search Its a standard feature in FF (that is what you see in my initial post). Its nice too for RESTFul web services URL's that return you a JSON data stream. Parses & rearranges the JSON in a nice human displayable format automatically. The FF web browser is still one of the "best things since sliced bread" in my PB toolbox. ;-)

I use Notepad++ for creating and editing JSON files. It has a JSON "plug-in" to assist you. A must for the PB Developer that uses XML, JSON and for me HEX editing - in my PB tool box too. ;-)

HTH
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Friday, 24 April 2020 18:02 PM UTC
  2. PowerBuilder
  3. # 4

Hi, Vladimir - 

If you are indeed using Themes, then someone else in the Community will need to answer,

Howeever, it you are NOT using themes, the color for a selected row in a DataWindow is defined by Windows. PB refers to this color as "Highlight" in the color drop-down list in the DW Painter. There is no option in PB to set this value that I know of.

Regards, John

Comment
  1. Vladimir K.
  2. Friday, 24 April 2020 18:08 PM UTC
Thank you John.



Yes we are using "Themes", this is why i have reference to theme.json
  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.