Effacer les filtres
Effacer les filtres

Increase screen space of GUI

1 vue (au cours des 30 derniers jours)
ANUBHAV SINHA
ANUBHAV SINHA le 1 Oct 2011
Hi, I have constructed a complex GUI using MATLAB. I intend to increase the screen space of the GUI and am unable to figure out the technique, Dragging the edges of the GUI doesnt help. May someone suggest any method to do so.
Thanks.
Anubhav
  1 commentaire
Image Analyst
Image Analyst le 1 Oct 2011
It should work. What is the "windowstyle" property of your GUI (look in the Property Inspector). Is it "normal"? Or is it "modal" or "docked"? And what is the "units" property value?

Connectez-vous pour commenter.

Réponses (1)

Oleg Komarov
Oleg Komarov le 1 Oct 2011
set(gcf,'Position',[leftX, bottomY, width, height])
gcf dynamically refers to the handle of the figure object which your GUI is built on (basically the outer layer of your GUI).
You have to assign 4 values with the property 'Position'. The first two values position your GUI in the screen by setting the "starting" point of the lower-left corner, the other two are self-explaantory.
You can call:
get(gcf,'Position')
to see the actual values.

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by