Resize in GUIDE not working
Mostrar comentarios más antiguos
Hi,
I am using GUIDE and when I try to resize the figure, nothing happens, and in the MATLAB command window, I get the following error:
Warning: Cannot set Position while WindowStyle is 'docked'
> In guidefunc>resizeFigure at 2693
In guidefunc at 116
I understand figures' position property cannot be set when docked, but how do I undock the GUIDE? I thought I could
set(h,'windowstyle','normal')
but I can't seem to find the figure handle. I tried using the method below:
findall(0,'type','fig')
ans =
Empty matrix: 0-by-1
Respuestas (2)
Image Analyst
el 6 de Jul. de 2012
4 votos
- In GUIDE, double click on your main figure's background - in any unoccupied space. This will being up the Property Inspector.
- Scroll way down to the last item in the Property Inspector. It is a property called WindowStyle.
- Change the WindowStyle property from docked to normal.
- Resize your figure. The warning will not appear back in the main MATLAB command window anymore.
1 comentario
Jon
el 9 de Mayo de 2019
Very helpful this was just the answer I was looking for. Worked exactly as described
Walter Roberson
el 6 de Jul. de 2012
Try
findall(0,'type','figure')
If there is only one figure then you can get its handle with
gcf
as in
set(gcf, 'Windowstyle', 'normal')
1 comentario
Jamal Ahmad
el 25 de Mayo de 2015
very useful
Categorías
Más información sobre Graphics Object Properties en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!