1. John Raghanti
  2. PowerBuilder
  3. Thursday, 15 October 2020 14:46 PM UTC

Hi,

I've got an ancestry object uo_ms_tv inherited from treeview:

forward
global type uo_ms_tv from treeview
end type
end forward

We've been asked to change the selected item color from the default Windows color to a color that follows our branding colors.

We've done that on all of our datawindows by getting rid of SelectRow and using setRow with a detail row background color Modify event.

I see that this treeview object doesn't have any properties that would allow me to attempt the same thing.

So my question is: is there a way to convert a treeview user object into a treeview datawindow easily? I think we could apply expressions to a treeview datawindow.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 15 October 2020 18:34 PM UTC
  2. PowerBuilder
  3. # 1

Hi John;

  Another alternative would be to try & use the new "Themes" feature for all of that instead of custom code. The Theme feature was introduced in PB 2019 and enhanced greatly in PB 2019 R2. Food for thought.

Regards ... Chris

Comment
  1. John Raghanti
  2. Friday, 16 October 2020 19:24 PM UTC
Yes, I totally tried to get them to implement Themes when we got 2019 last year. They didn't bite.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 16 October 2020 19:31 PM UTC
Yes the 1st GA of 2019 was a little deficient in certain Theme areas. However Appeon really improved that feature in the R2 release. ;-)
  1. Helpful
There are no comments made yet.
John Raghanti Accepted Answer Pending Moderation
  1. Thursday, 15 October 2020 15:10 PM UTC
  2. PowerBuilder
  3. # 2

Doesn't that only control the picture on the left?

 

Comment
  1. Olan Knight
  2. Thursday, 15 October 2020 17:35 PM UTC
This property controls all of the images used in every level of nodes.

Note that you do have to specify which image to use when you are struturing the treeview in PowerScript.



In my case, I use image 1 for the currently opened folder - it's SO much easier to see amidst the Sea of Closed Folder Icons.
  1. Helpful
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Thursday, 15 October 2020 14:55 PM UTC
  2. PowerBuilder
  3. # 3

Change the images used for the OPEN NODE and for the CLOSED NODE.

This is done on the PICTURES tabpage in the proerties of the treeview object:

 

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.