how to reduce the size of checkbox
2 次查看(过去 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
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!