LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown filter menu

Solved!
Go to solution

Hello,

 

is it possible to create drop down filter menu, something similar like in excel?

So you are able to select wanted content.

milan87_0-1688456470818.png

 

0 Kudos
Message 1 of 7
(8,683 Views)

Hi milan,

 


@milan87 wrote:

is it possible to create drop down filter menu, something similar like in excel?


Yes.

 

 

Spoiler

You can create right-click menus at runtime.

Or you can use a listbox to show the list of options and use the item symbol to show the checkmark.

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(8,679 Views)

can you please share some example, didn't manage to made this.

I also try with tree but without success.

0 Kudos
Message 3 of 7
(8,641 Views)

Hi milan,

 


@milan87 wrote:

didn't manage to made this.

I also try with tree but without success.


What have YOU tried and where are YOU stuck?

Please provide your example VIs!  (Keep in mind many of us prefer LabVIEW 2021 or older. I prefer LabVIEW2019.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(8,633 Views)

Hello,

 

there is no some example to share.

I followed your instruction:

''Or you can use a checkbox to show the list of options and use the item symbol to show the checkbox.''

So i added symbols, but as can see, this is just symbols.

milan87_0-1688536405910.png

So, this could work, when take checkbox coordinate, check if it is mouse is on checkbox position, and then using property node, change symbol somehow.

Or i missed something.

0 Kudos
Message 5 of 7
(8,601 Views)
Solution
Accepted by topic author milan87

Hi milan,

 


@milan87 wrote:

I followed your instruction:

''Or you can use a checkbox to show the list of options and use the item symbol to show the checkbox.''

So i added symbols, but as can see, this is just symbols.


On a listbox you can use events to determine the mouse position (or the item you are working with). Then you can add code to change the item symbol as needed from "empty box" to "checked box" and vice versa.

(The same applies to trees or runtime menus.)

 

I never wrote you get all that for free: you always need some code to handle user interactions!

 

Just an example:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(8,596 Views)

this helped me a lot.

Thanks you very much.

0 Kudos
Message 7 of 7
(8,582 Views)