app designer : Auto-filter-list or Auto-Completion-List

조회 수: 12 (최근 30일)
amakoba yim
amakoba yim 2021년 5월 9일
답변: Mario Malic 2021년 5월 9일
I don't have idea to integrate in an app designer application an auto-completion or auto filter list to a text field or even better to the drop down?
I have a file that contains hundreds of variables to plot, and to facilitate the user to find the desired variable this auto filter list proposes the variable after typing the first letter, the second... I found this code that executes exactly what I want "auto filter list" but I don't know how to integrate it to app designer. And do I have to enter each variable name by hand.
The code:
strs = {'This','is','test1','test2'}; strList = java.util.ArrayList; for idx = 1 : length(strs), strList.add(strs{idx}); end jPanelObj = com.mathworks.widgets.AutoCompletionList(strList,''); javacomponent(jPanelObj.getComponent, [10,10,200,100], gcf);
Link:
https://undocumentedmatlab.com/matlab/wp-content/cache/all/articles/auto-completion-widget/index.html
I thank you in advance

답변 (1개)

Mario Malic
Mario Malic 2021년 5월 9일

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by