Is there anyway to 'autosize' the listdlg menu?
5 ビュー (過去 30 日間)
古いコメントを表示
I want to create a listdlg depending on some sort of data. The thing is, the user can create new data and add it to the listdlg. But I need a way to adapt the size.
For exemple, I have a listdlg with options: A,B,C, create new letter
If the user chooses to create new letter D, next time letter E will be an option.
Is there any way to do this?
Thanks!
4 件のコメント
Walter Roberson
2013 年 2 月 4 日
You cannot add a new Liststring onto the existing one in a listdlg(), but you can add new cells onto the cell array that you pass in as the Liststring parameter.
回答 (1 件)
Walter Roberson
2013 年 2 月 4 日
S = {'A' 'B' 'C'};
listbox('Liststring', S);
S{end+1} = 'D';
listbox('Liststring', S)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Dialog Boxes についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!