PxPlus User Forum

Twitter Twitter Twitter

Author Topic: list_box with line borders or alternate colors?  (Read 971 times)

Cedric

  • Silver Member
  • ***
  • Posts: 25
    • View Profile
list_box with line borders or alternate colors?
« 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?

RobL

  • Silver Member
  • ***
  • Posts: 21
    • View Profile
Re: list_box with line borders or alternate colors?
« Reply #1 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.

Jane Raymond

  • Staff
  • Diamond Member
  • *****
  • Posts: 280
    • View Profile
    • PVX Plus Technologies
Re: list_box with line borders or alternate colors?
« Reply #2 on: January 18, 2023, 08:54:19 AM »
You can also do this system-wide using:
PRINT 'OPTION'("StdRowHilight1",color$),
Jane Raymond
Software Developer
PVX Plus Technologies Ltd.

Mike King

  • Diamond Member
  • *****
  • Posts: 3818
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: list_box with line borders or alternate colors?
« Reply #3 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).
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Cedric

  • Silver Member
  • ***
  • Posts: 25
    • View Profile
Re: list_box with line borders or alternate colors?
« Reply #4 on: January 18, 2023, 03:01:33 PM »
Super!  Thanks guys!