How do I make my AIR app window not resizable? Note, I am not talking about any newly created window, but the actual AIR app's window (WindowedApplication)
A:
Try:
var windowOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
NativeWindowInitOptions.resizable = false;
See here for more info on what you can do with the window options.
John Feminella
2009-03-17 02:05:50
widowOptions seems to only work for newly created NativeWindow. In my case, I am looking to make my app's window (i.e. WindowedApplication.nativeWindow) not resizable, how would I do that?
Boon
2009-03-17 06:44:29
A:
In your application.xml file, set resizable to false under 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>
Peter Richards
2009-03-18 05:20:31