Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Jun 26, 1998



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Highlighting a row a different color

Using PFC, when I select a row, it turns dark blue, often obscuring the data. Is there a way to change the color to something lighter?

The way to do this is to build your own custom highlighting. Add a rectangle to your row and set it to be behind all the other objects. Then add a dummy column to the result set called highlight. Add an expression to your rectangle for the color attribute that checks for a "Y" in the highlight column.

Then in powerscript you can add values to the column to highlight rows. You could also override the SelectRow function so that all the PFC code will still work.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date