취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

Dropdown filter menu

해결 완료!
솔루션으로 이동

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 포인트
1/7 메시지
10,265 조회수

Hi milan,

 


@milan87 wrote:

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


Yes.

 

 

스포일러

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 포인트
2/7 메시지
10,261 조회수

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

I also try with tree but without success.

0 포인트
3/7 메시지
10,223 조회수

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 포인트
4/7 메시지
10,215 조회수

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 포인트
5/7 메시지
10,183 조회수
솔루션
승인자 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
6/7 메시지
10,178 조회수

this helped me a lot.

Thanks you very much.

0 포인트
7/7 메시지
10,164 조회수