Borrar filtros
Borrar filtros

uitreenode size\position change

7 visualizaciones (últimos 30 días)
Mohamed AKI Ahmed
Mohamed AKI Ahmed el 20 de Jul. de 2022
Respondida: Aditya Singh el 15 de Jun. de 2023
Hello. I want to know if it is possible to change the size/position in uitreenode. I am using GUIDE and in my panel tree, the innerposition can't be edited and always have the same value of the outerposition and position, thus, some of the content inside the tree are not visible

Respuestas (1)

Aditya Singh
Aditya Singh el 15 de Jun. de 2023
Hello AKI,
As per my understanding you want to change the position of ‘uitreenode’.
Uitrees are created with a default position of (0,0), a width of 200 (or less if the figure is narrower) and a height spanning the entire figure’s content area. This can easily be modified following the tree’s creation using its Position property:
mtree = uitree(...);
mtree.Position = [100,100,50,150]; % modify position & size
mtree.Position(4) = 100; % limit tree height to 100 pixels
You can also use the ‘innerPosition’ property.
The Location and size is specified as a four-element vector of the form, - [left bottom width height]. The values in the vector are relative to the parent container. All measurements are in pixel units.
For more information and examples, kindly refer to:
Hope it helps!

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by