PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: James Zukowski on April 13, 2022, 09:58:19 AM

Title: Column scrolling in report list_box
Post by: James Zukowski 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!
Title: Re: Column scrolling in report list_box
Post by: Mike King on April 13, 2022, 11:43:49 AM
There is not a column lock for a list box, but there is for a grid.
Title: Re: Column scrolling in report list_box
Post by: James Zukowski 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?
Title: Re: Column scrolling in report list_box
Post by: Mike King 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.
Title: Re: Column scrolling in report list_box
Post by: James Zukowski on April 13, 2022, 04:20:35 PM
Got it. Thanks.