how to reduce the size of checkbox
1 回表示 (過去 30 日間)
古いコメントを表示
i would like reduce the size of the checkbox so that the checkbox square has the same size of text (F1X-Lab...) which is a listbox
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/236787/image.jpeg)
2 件のコメント
Rik
2019 年 9 月 3 日
You will probably need some tricks to find out how many lines would fit in your listbox, but then you can just change the Position property of your checkboxes.
But a more fundamental question: if you want to relate the checkboxes to your listbox items, why not make the elements the text for each checkbox? That would save you the trouble of alligning them.
回答 (1 件)
Jan
2019 年 9 月 3 日
This will not work realiably. Even the OS can change the sizes of specific GUI elements. Use an uitable instead, (see Fabienne's comment) or an undocumented treeTable: https://undocumentedmatlab.com/blog/treetable
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!