App Designer uitextarea control gives position values not in pixels when window is maximised?

조회 수: 1 (최근 30일)
Here is the output. Can this be translated into pixels or any alternatives?
ans =
1.0e+03 *
1.2728 0.7737 0.6092 0.1143

채택된 답변

Ajay Kumar
Ajay Kumar 2019년 11월 13일
편집: Ajay Kumar 2019년 11월 14일
When I do this:
fig = uifigure;
txa = uitextarea(fig);
txa.position
I get the Output as 100 100 150 60 which are pixels.
  댓글 수: 7
Ajay Kumar
Ajay Kumar 2019년 11월 14일
I think you are missing out something in c
In the comment above you have considered c as
c = [1.2728 0.7737 0.6092 0.1143]
you are missing to multiply *1.0e+03
which indicates
[1272.8 773.7 609.2 114.3]
which are pixels.
Bereketab Gulai
Bereketab Gulai 2019년 11월 14일
That is correct, they can be restored to correct unit.
Thank you

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop uifigure-Based Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by