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 Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by