PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: Cedric on January 18, 2023, 08:26:45 AM

Title: list_box with line borders or alternate colors?
Post by: Cedric on January 18, 2023, 08:26:45 AM
Hi,
my customer complains about readability of a specific list_box and would like borders or alternate colors between each line?  I was looking in the documentation, but couldn't find anything about this?  I know I could use mnemonic to manually change the color line by line, but was wondering if there was a property or function that already existed before I alter my program to force this?
Title: Re: list_box with line borders or alternate colors?
Post by: RobL on January 18, 2023, 08:40:08 AM
Hi,

I think the ‘BackHiLight1$ property is what you’re looking for. Here’s a link to to the page in the docs:
https://manual.pvxplus.com/PXPLUS/properties/backhilight1_.htm

Regards,
Rob Leighton
Riverwood Enterprises Inc.
Title: Re: list_box with line borders or alternate colors?
Post by: Jane Raymond on January 18, 2023, 08:54:19 AM
You can also do this system-wide using:
PRINT 'OPTION'("StdRowHilight1",color$),
Title: Re: list_box with line borders or alternate colors?
Post by: Mike King on January 18, 2023, 10:13:31 AM
If you are using Nomads you can set the Highlight1 (and 2) colors for the specific list box in the control properties -- (Font/Color tab).

Also if using a Report view style of list box you can enable grid lines which will provide 'borders' between each line (and potentially each column) in the list box -- (Attributes tab).
Title: Re: list_box with line borders or alternate colors?
Post by: Cedric on January 18, 2023, 03:01:33 PM
Super!  Thanks guys!