필터 지우기
필터 지우기

uitreenode size\position change

조회 수: 7 (최근 30일)
Mohamed AKI Ahmed
Mohamed AKI Ahmed 2022년 7월 20일
답변: Aditya Singh 2023년 6월 15일
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

답변 (1개)

Aditya Singh
Aditya Singh 2023년 6월 15일
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!

카테고리

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