Borrar filtros
Borrar filtros

How to get invisible panel to resize with figure window?

2 visualizaciones (últimos 30 días)
Clayton Birchenough
Clayton Birchenough el 27 de Mayo de 2018
Respondida: Robert Huggins el 26 de Dic. de 2020
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.

Respuestas (2)

Walter Roberson
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.

Robert Huggins
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

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!

Translated by