how to reduce the size of checkbox

조회 수: 1 (최근 30일)
Fabienne Guerville
Fabienne Guerville 2019년 9월 3일
답변: Jan 2019년 9월 3일
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
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.
Fabienne Guerville
Fabienne Guerville 2019년 9월 3일
with uitable, the text and the checkbox are ailgned but if i'll do that i loose the ability to select the element included in the text. the aim is double : in a listbox, select the different elements and make processing and in the checkbox select other elements (can be the same but not always) to visualize them

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
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

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by