How to get invisible panel to resize with figure window?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (2)
Walter Roberson
el 27 de Mayo de 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 comentarios
Robert Huggins
el 26 de Dic. de 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 comentarios
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!