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

11 visualizaciones (últimos 30 días)
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 ?

Respuesta aceptada

Image Analyst
Image Analyst el 20 de Dic. de 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 comentarios
VBBV
VBBV el 20 de Dic. de 2020
Editada: VBBV el 20 de Dic. de 2020
Thanks for the solution. It works for figures. How can I minimize or maximize for tables in GUI layout ?
Image Analyst
Image Analyst el 21 de Dic. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Tables en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by