LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable horizontal scroll in multicolumn listbox

I'm using a Multicolumn listbox and I programmatically change the cell to be edited using UP, DOWN, RIGHT and LEFT keyboard keys.

Everything is working exept for the rightmost column: when I press the RIGHT key, the cursor moves to the next cell inside the rightmost column but all the table scrolls to the right (even if not really necessary) preventing the user from seeing the first column (leftmost). Is it possible in some way to lock or totally disable the horizontal scroll?

Every idea would be welcome.

0 Kudos
Message 1 of 3
(3,272 Views)

I don't think there's a way to completely disable scrolling (once you ask the MCLB to show you a cell, it will probably do whatever it can to show it to you), but you can start by making the scrollbar invisible and by setting the Top Left Visible Cell property to [X, 0] every time you move a cell. If this doesn't work, you should upload your code. We play better when we have what to work with.


___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(3,266 Views)

Thank you very much for the support but I could eventually fix it.

The problem was: when you size your table you have to do it very carefully, ensure that the rightmost column is entirely within the visible area, otherwise if you edit a cell in that column the table would scroll left...

Message 3 of 3
(3,254 Views)