LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multicolumn Listbox question

I use a multicolumn listbox to browse my pc, but when I change directory, on
the refresh, the view is not on the first element, so when a directory have
just few files, I don't see anything and I have to move up the scroll bar.
There is a way to move the scrollbar on top ?

Thanks
Eric
0 Kudos
Message 1 of 4
(3,053 Views)
There's a way:
- Create a property node of your listbox
- Choose the Top left visible cell property
- Change it to write mode
- Create a cluster (control or local variable) and connect it to the node

The value you set in the cluster forces the listbox to view the corresponding cell in the top left corner.
Note that you can fix both the vertical and the orizontal position.

Hope it helped.
0 Kudos
Message 2 of 4
(3,054 Views)
 Can you give an example of "Create a cluster (control or local variable) and connect it to the node", just put cell (0,0) in?
I did not make it.
0 Kudos
Message 3 of 4
(2,960 Views)


@detech wrote:
 Can you give an example of "Create a cluster (control or local variable) and connect it to the node", just put cell (0,0) in?
I did not make it.



detech,

-Right click on the property node where it says "TopLeft" or "Top Left Visible Cell".
-Select "Create > Constant" from the drop down menu that appears.

You'll get a cluster constant (row index, column index) wired automatically.

Right clicking on the property node where it says "TopLeft" and selecting "Help for Top Left Visible Cell" can provide useful information.

=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 4 of 4
(2,942 Views)