LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multicolumn ListBox Display

Is it possible to change the rows being displayed in a multicolumn listbox without using the scroll bars?
 
I have a 2D array with all the strings for the box and it is updating fine with the scroll bars.
 
I want to remove the scroll bars and programatically display sequential groups of rows based on a different command.
 
The application is that I have 11 units, each with 16 devices on them for a total of 176 entries in my array.
 
I want the user to select 1 of 11 units, and I will display the 16 devices on the listbox.
 
Essentially unit 1 displays devices 1-16, unit 2 displays 17-32, etc.
 
Any ideas are appreciated.
 
0 Kudos
Message 1 of 5
(3,261 Views)

Hi jspaarg,

      This example uses the TopLeft cell, and NumRows listbox properties - is it on the right track?

Cheers.

Message Edited by tbd on 08-07-2006 08:51 PM

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 2 of 5
(3,257 Views)

That solves part of the problem and is a little more elegant than how I am trying to do it, but the list box value does not change to reflect a selection.

For instance, if I am in group (section, whatever) 4, then the range is 48-63.  There does not seem to be a way to set the value in the list box (thus the highlighted row).

It seems that the value can only be in the range of 0-15 when the vertical scroll bars are missing.

Is there a way to highlight value 54 when the range is 48-63 and have the control indicate that it is 54 and not 7?

Thanks

 

0 Kudos
Message 3 of 5
(3,239 Views)
Hi jspaarg,
      Here's another try.  The highlighted row can be set via the numeric control, or by clicking on the listbox.
 
> but the list box value does not change to reflect a selection
when you click on a row, "Selected" is updated with the new list box value - it seems to be correct!(?)
> There does not seem to be a way to set the value in the list box (thus the highlighted row).
modifying Selected assigns a new list box value - and the correct row seems to get highlighted - no?
 
I fear I'm missing your point and that there's some wierd phenomena I'm not observing...
 
 
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 4 of 5
(3,225 Views)

Thanks, that is pretty much what I am trying to do.

The only exception is not being able to change the selected row when the segment changes.

I cannot find a way to do that either.

Perhaps I will put some type of error handler in place in case the user performs an operation that requires a selected row and the row is not in the segment.

 

Thanks again

 

0 Kudos
Message 5 of 5
(3,212 Views)