How to get invisible panel to resize with figure window?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hey!
I'm using two uipanels stacked in a figure window. I make one invisible, and I was wondering if it was possible to make this invisible uipanel resize when the figure window was resized. I'm using 2017b.
0 Kommentare
Antworten (2)
Walter Roberson
am 27 Mai 2018
If you define the Position of the uipanel in terms of Units 'normalized' then the panel will maintain constant relative portions.
However if the uipanel visible is 'off' and you set the uipanel units to any absolute unit such as pixels or mm, then MATLAB defines that the Position property will not get updated until the uipanel is rendered -- even if only by
set(the_handle, 'visible', 'on'); set(the_handle, 'visible', 'off')
Chances are that there will be no visible change if you immediately set the visibility off again, but all relevant properties will be recalculated when visible is set on.
0 Kommentare
Robert Huggins
am 26 Dez. 2020
I have a panel on my fig that disapeared ,shows up when I run but I somehow moved it (using 2008b) with object browser I managed to move it back to where it should be but it would be nice to get it so I can see it and edit it
The Title shows up but no border to panel !
Any ideas ?
Bob Huggins
0 Kommentare
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!