how to reduce the size of checkbox

2 visualizaciones (últimos 30 días)
Fabienne Guerville
Fabienne Guerville el 3 de Sept. de 2019
Respondida: Jan el 3 de Sept. de 2019
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 comentarios
Rik
Rik el 3 de Sept. de 2019
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 el 3 de Sept. de 2019
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

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 3 de Sept. de 2019
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

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by