tags:

views:

640

answers:

2

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
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
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