Azzera filtri
Azzera filtri

How to get invisible panel to resize with figure window?

2 visualizzazioni (ultimi 30 giorni)
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.

Risposte (2)

Walter Roberson
Walter Roberson il 27 Mag 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 il 26 Dic 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

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by