LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable highlighting in a multicolumn listbox

Is there anyway to disable highlighting in a multicolumn listbox?  I tried searching and all a saw was some really old posts and some crude work arounds.  In older versions of Labview this seemed like a bug, but in 2013sp1 this should be fixed by now.

0 Kudos
Message 1 of 9
(3,455 Views)

If I understand what you want correctly, then there are two options on the MCLB which can help you. The first is to set it to highlight the entire row. The second is to set it to allow selecting no elements (an empty array or a -1, depending on the data type you configured for the control). You can also change it to an indicator, disable it or write code to discard updates to it.


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

Can you give vi or snippet?

0 Kudos
Message 3 of 9
(459 Views)

The first two options I suggested don't require any code, just right clicking on the control and finding the correct option. I'll leave that to you, because it's a good idea to know what the options in the menu are.

 

If they don't do what you want, I suggest you provide more details about what you actually want, ideally with an actual VI.


___________________
Try to take over the world!
0 Kudos
Message 4 of 9
(448 Views)

Just set the highlight color to be the same as the cell color.

Message 5 of 9
(440 Views)

@nonecure wrote:

Is there anyway to disable highlighting in a multicolumn listbox?  I tried searching and all a saw was some really old posts and some crude work arounds.  In older versions of Labview this seemed like a bug, but in 2013sp1 this should be fixed by now.


If you found some really old posts, why not give a link so we are all on the same page?

 

You can embed your picture into the posts so it is easier for all of use to understand the problem.

 

Listbox

 

It also helps to give more context. Is your listbox a control or indicator and how does the user interact with it? As has been said, you can set the selection color to the cell color.

 

If this is just a glorified table listing tests results, maybe a table indicator would be more suitable. In a table, the 2D array of strings is the "value". For a listbox, the selected item(s) is the "value" and it should typically be highlighted so we actually know the value!

 

Once you explain what problem you are actually trying to solve, we can probably give more targeted advice.

0 Kudos
Message 6 of 9
(410 Views)

If I set the highlight color, the text color also becomes the same color, so text is not visible.

0 Kudos
Message 7 of 9
(390 Views)

Hello Karthi_Vel,

 

please try to answer the questions.

Greets, Dave
0 Kudos
Message 8 of 9
(385 Views)

@Karthi_Vel wrote:

If I set the highlight color, the text color also becomes the same color, so text is not visible.


text color, background color, and highlight color are all different. We have no idea what you did.

0 Kudos
Message 9 of 9
(377 Views)