Hello,
I have MATLAB 2020b. Try to test the code in the "addStyle" help page (the one for uiTree):
I get the following error:
why is that? does it require a particular Toolbox or something like that?
Thank You!

 Respuesta aceptada

Shanmukha Voggu
Shanmukha Voggu el 27 de Dic. de 2021
Editada: Shanmukha Voggu el 27 de Dic. de 2021

0 votos

Hi Mark,
The addStyle works for only table UI component before R2021b (So it is giving error while using tree UI component in R2020b)
In R2021b, The addStyle Function can also add styles to nodes and levels in a tree UI component
Finally, In order to resolve the error upgrade the MATLAB version to R2021b
R2021b Documentation:
Release Notes:

1 comentario

Mark Golberg
Mark Golberg el 27 de Dic. de 2021
thank you for the reply. too bad it's not explicitly written on the addStyle help page.
Other than version upgrade, is there any other alternative for me to format my uiTree nodes?
I simply would like to change it's color (font and/or background, doesn't matter to me).
Any propery I could use for that?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.

Productos

Versión

R2020b

Etiquetas

Preguntada:

el 24 de Dic. de 2021

Comentada:

el 27 de Dic. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by