PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Column scrolling in report list_box  (Read 802 times)

James Zukowski

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Column scrolling in report list_box
« on: April 13, 2022, 09:58:19 AM »
Is there a way to ensure that a particular column is visible in a report-style list_box?
We've got list boxes with only about half the columns visible at a time. If we 'FindItemText$ to a column that is not visible, the line is highlighted, but the actual text can't be seen. This is especially confusing for users when that text appears more than once in the line.
There's a 'TopVisibleItem available for line-based visibility, but nothing I've found for columns. The closest is 'ColumnClicked, but that's read-only.
Thanks, all!
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Column scrolling in report list_box
« Reply #1 on: April 13, 2022, 11:43:49 AM »
There is not a column lock for a list box, but there is for a grid.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

James Zukowski

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Re: Column scrolling in report list_box
« Reply #2 on: April 13, 2022, 02:57:29 PM »
Thanks, Mike, but we're not really looking for a lock.
Example:
LB has 10 columns, but can only display the first 5 due to width/window restrictions. The user does a 'FindItemText$ search which locates a result in column 8. The entire line is highlighted, but they can't see the text they searched for without manually scrolling to the right.

Any ideas?
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Column scrolling in report list_box
« Reply #3 on: April 13, 2022, 03:02:28 PM »
I believe the Grid will scroll the column/row into the display when you attempt to set focus to that cell.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

James Zukowski

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Re: Column scrolling in report list_box
« Reply #4 on: April 13, 2022, 04:20:35 PM »
Got it. Thanks.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services