App Designer uitextarea control gives position values not in pixels when window is maximised?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Bereketab Gulai
le 13 Nov 2019
Commenté : Bereketab Gulai
le 14 Nov 2019
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
0 commentaires
Réponse acceptée
Ajay Kumar
le 13 Nov 2019
Modifié(e) : Ajay Kumar
le 14 Nov 2019
When I do this:
fig = uifigure;
txa = uitextarea(fig);
txa.position
I get the Output as 100 100 150 60 which are pixels.
7 commentaires
Ajay Kumar
le 14 Nov 2019
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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!