LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to disable the highlighting in a multicolumn listbox?

The only mode availables are highlight entire row or the element in the first column of the row is hilighted. I want to use the active cell set color background to display the selected value.

 

I didn't find any property to disable the hihlighting, is there a workaround?

 

Thanks

 

Ben

Download All
0 Kudos
Message 1 of 10
(9,863 Views)

Use a filer event and discard?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 10
(9,859 Views)

Why don't you attach some simple code instead of images. It would make it much easier for us to play around a little bit. 😉

 

What is this used for? Is it a real control? mostly an indicator?

 

Some ideas:

 

 

  • Make it an indicator, allow (and keep it at 0 item selection). and change cell colors programmatically.
  • Could you use a table instead?
(You would think that setting the selection color to transparent would work, however it also makes the entire text of the selection (font color) also transparent, not just the background. This seems like a bug to me.)

 

Message 3 of 10
(9,842 Views)

I attached a snippet in my previous post but it seem that when it is put in a diagram a refnum is created insted of a control.

 

Thanks Christan, changing the listbox to an indicator worked (if you don't click in the listbox before running the VI which is still a bit annoyant, I could probably disable the lisbox when I stop the VI and enable it at start). I feel kind of silly because changing to an indicator is something I tried with a table. I did not used the table because the cursor change to the labeling tool when you click on a table cell even when it is an indicator (there is probably a way to change this behavior but I haven't found out).

 

Actually I intend to use the listbox as a control where elements to be turn on/off will be selected (but I don't want the values to be modified). I want to use this kind of display (multicolumn listbox or table) because it is representative of the bit allocations table of the commands. Also up to four values can be selected. I'm still exploring different ways to implement this.

 

 

Ben

0 Kudos
Message 4 of 10
(9,821 Views)

Hi Ben,

 

Did you find out a solution for completely removing the highlight of the listbox - multicolumn or single column? Making it as an indicator is not a solution for me because I need it to be a control - with drag & drop functionalities. Though the selection color is made transparent still a dotted square box is visible. I definitely need to remove it because my GUI is highly customized and this square is displaced in it.

 

Thanks,

Priyadarsini S

0 Kudos
Message 5 of 10
(9,482 Views)

You might find an answer in this thread.

 

Ben64

0 Kudos
Message 6 of 10
(9,476 Views)

Ben,

 

This is not working. I can still see a dotted line (now it is almost a line instead of a rectangle).

 

Thanks,

Priyadarsini S

0 Kudos
Message 7 of 10
(9,453 Views)

Ben,

 

I found out a workaround which will completely remove this dotted box. For this I am capturing the 'Mouse Down?' Filter event, discarding the action and setting the value change programmatically. (see attached image).

 

Thanks,

Priyadarsini S

Message 8 of 10
(9,431 Views)

I mean, instead of 'Value Change' event, used a 'Mouse Down' filter event and set the 'Value(Signaling)' property node

0 Kudos
Message 9 of 10
(9,407 Views)

I switched it to an indicator and changed the selection mode to 0 or more -- that seemed to get rid of it for me

0 Kudos
Message 10 of 10
(456 Views)