LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change Value (active row) of multicolumn listbox using mouse

Solved!
Go to solution

Hi Is the a way to change Value (active row) of multicolumn listbox using mouse?

0 Kudos
Message 1 of 14
(6,186 Views)

If it is a control yes, if it is an indicator no!

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 14
(6,178 Views)

Ha ha. That's a short answer Smiley Very Happy. I dont expect you want to reveal how?

0 Kudos
Message 3 of 14
(6,125 Views)

Can you give more detail on what you have and what you're trying to do?  As Rolf said, if your listbox is a control, mouse interaction is a natural function, but if it's an indicator, it's not.  And, of course, if it's a control but you have it disabled, you'd need to enable it before you can change the active row with the mouse.  Can you post any code as an example?

______________________________________________________________________
The avatar is for the best weapon in any game ever. But nobody goes there anymore.

CLAD, LV2013, LV2015
0 Kudos
Message 4 of 14
(6,118 Views)
Solution
Accepted by topic author Michael.Koppelgaard

Here's one way to do it.

 

 

 

Listbox.png

Message 5 of 14
(6,108 Views)

Wauuu that's brilliant 

Spoiler
Smiley Very Happy Smiley Very Happy Smiley Very Happy
0 Kudos
Message 6 of 14
(6,091 Views)
Solution
Accepted by topic author Michael.Koppelgaard

Hi

How do you get access to point to row coloumn property node ?

 

snip.png

0 Kudos
Message 7 of 14
(6,048 Views)

@Michael.Koppelgaard wrote:

Ha ha. That's a short answer Smiley Very Happy. I dont expect you want to reveal how?


The answer is only slightly shorter than your question! Smiley Very Happy

If you had elaboated a little more about what your problem is, I might have expanded on my answer. As it was my first thougth was that  you simply were trying to operate the listbox control after you had made it into an indicator.

 

Sorry for my underdeveloped mind reader ability.

 

As to your last question about how to get access to the Point to Row property node I again struggle to understand what you are asking. You have the snipped posted so you have access to the actual VI. Obviously you have the method node (this one is not a property node!) already there and the actual method selected. So you simply place a method node on the diagram and wire it to the object refnum and voila!

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 8 of 14
(6,043 Views)

What do I want to do??

Sorry for being so not corroborative

I have 2 instruments. I want to adjust the instruments after the value in the row header. I want to put the output from instrument 1 in col 1 and from instrument 2 in col 2.

I want to be able to jump from row to row using the mouse click function and use this value to set the instruments.

From dave_st’s answer, I understand that it’s also possible to use the mouse wheel to change the value of the multicolumn object. I didn’t know that.

I hope my explanation is understandable.

0 Kudos
Message 9 of 14
(6,030 Views)
Solution
Accepted by topic author Michael.Koppelgaard

Here's an example I wrote up.  I'm not entirely clear on how you want to bring the data in to the listbox or what you want to do with it after, but that's okay--the important part is extracting it.  Hope this is the kind of solution you're looking for.

______________________________________________________________________
The avatar is for the best weapon in any game ever. But nobody goes there anymore.

CLAD, LV2013, LV2015
Message 10 of 14
(6,003 Views)