2009-03-17 9 views

Répondre

3

Dans votre fichier application.xml, définissez redimensionnable false sous initialWindow:

<application....> 
    <!-- Normal app stuff like id, name, etc --> 
    <initialWindow> 
     <!-- Normal initialWindow stuff like content, title, systemChrome --> 
     <minimizable>true</minimizable> 
     <maximizable>false</maximizable> 
     <resizable>false</resizable> 
     <width>800</width> 
     <height>600</height> 
    </initialWindow> 
</application> 
2

Essayez:

var windowOptions:NativeWindowInitOptions = new NativeWindowInitOptions(); 
NativeWindowInitOptions.resizable = false; 

Voir here pour plus d'informations sur ce que vous pouvez faire avec les options de la fenêtre.

+1

widowOptions semble fonctionner que pour NativeWindow nouvellement créé. Dans mon cas, je cherche à rendre la fenêtre de mon application (c'est-à-dire WindowedApplication.nativeWindow) non redimensionnable, comment ferais-je cela? – Boon

0

mis minwidth de l'application même que maxwidth et minheight même que maxheight

+0

c'est le chemin long, le bon chemin est posté par John Feminella –

Questions connexes