LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is this in multicolumn listbox?

Solved!
Go to solution

Is there anyway to show/hide it?

or get/set it's position programmatically?

 

It's always on column1.  Cause misleading.  Make user think it's editing cell.

 

multicolumn listbox.png

 

 

George Zou
0 Kudos
Message 1 of 14
(5,826 Views)

I think it indicates the EditPos.

 

If you set the value of EditPos to -1,-1 and then KeyFocus to False, it should disapear.

 

Message 2 of 14
(5,787 Views)

It's not EditPos.  It's always on column 1.  It indicates the clicked row, but the column is wrong.

 

Set KeyForcus to False did make it disappear, but one click on the listbox brings it back.

 

untitled2.png

 

George Zou
0 Kudos
Message 3 of 14
(5,763 Views)

If you turn on Symbols in the MCL, the artifact in your first example is moved right (about the width of a symbol).

 

Hmmm...

 

0 Kudos
Message 4 of 14
(5,748 Views)

You will see this when the selection mode is set to 1 item (the first element of the row is selected). To make it disappear set it to 1 or More Items or to 0 or More Items.

 

Ben64

Message 5 of 14
(5,738 Views)

When you select the 2nd item, it show up again.

 

Beside, I can't let user select more than 1 item.

 

George Zou
0 Kudos
Message 6 of 14
(5,735 Views)
Solution
Accepted by topic author zou

Hi George,

 

Unfortunately it would seem that there is no direct way to make the rectangle with the dotted outline go away given the constraints you mentioned; however, I may have a workaround. I suggest that you create a "dummy" column with no real data as the first column and then change its width so that it is almost zero. When I tried this, I could no longer see the rectangle with the dotted outline. Hope that helps!

 

Regards,

Nathan S.
Applications Engineer
National Instruments
Message 7 of 14
(5,707 Views)

Hi Nathan,

 

The workaround that you suggested did not work for me. But another method worked which will completely remove this dotted box. Instead of using a 'Value Change' event, I used the 'Mouse Down?' Filter event, set 'Discard?' to true and set the value to 'Value(Signaling)' property node (see attached image).

 

Thanks,

Priyadarsini S

0 Kudos
Message 8 of 14
(5,645 Views)

Priyadarsini,

 

Your method indeed make the dotted box disappear.  However, it also disabled the double click event.  So it doesn't work for me.

 

This looks like a bug, hope it will get fixed in next release.

 

 

George Zou
0 Kudos
Message 9 of 14
(5,633 Views)

Hi George,

 

You can just make Discard? false for Double Click and Button==2 (for right-click) and use Value property node instead of Value(Signalling) in these cases alone. I too do the same and it works. Hope this helps.

 

Thanks,

Priyadarsini S

Message 10 of 14
(5,627 Views)