How can add minimize or maximize button feature in GUI figures or tables ?

7 visualizzazioni (ultimi 30 giorni)
I have GUI built in Guide environmen. The GUI has a region where the plot figures and tables can be displayed using pushbutton/s. When I press the button it only outputs the figure or table but no minimize and maximize options can be seen. I would like to add minimize or maximize the figures and tables within GUI How can I do it ? Any suggestions ?

Risposta accettata

Image Analyst
Image Analyst il 20 Dic 2020
I don't know what it means to maximize a table on a figure, but to maximize the figure itself, you can do
g = gcf;
g.WindowState = 'maximized'
  2 Commenti
VBBV
VBBV il 20 Dic 2020
Modificato: VBBV il 20 Dic 2020
Thanks for the solution. It works for figures. How can I minimize or maximize for tables in GUI layout ?
Image Analyst
Image Analyst il 21 Dic 2020
You can set the Position property of the control to be whatever you want. Like
handles.uitable.Units = 'normalized';
handles.uitable1.Position = [0, 0, 1, 1];
If not, then show a picture of your GUI before, and then after maximizing. Use a paint program to create it it you need to.

Accedi per commentare.

Più risposte (0)

Categorie

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

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by