Skip to content
Dec 25 /

Toggling the gripper on a WindowedApplication container in Adobe AIR

The following example shows how you can toggle the gripper on an Adobe AIR WindowedApplication container by setting the Boolean showGripper property.

Note: On Mac OS X a window with systemChrome set to “standard” always has an operating system gripper, so this property is ignored in that case.

<?xml version="1.0" encoding="utf-8"?>
<!-- http://airexamples.com/2008/12/25/toggling-the-gripper-on-a-windowedapplication-container-in-adobe-air/ -->
<mx:WindowedApplication name="WindowedApplication_showGripper_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        title="WindowedApplication showGripper"
        showGripper="{checkBox.selected}">
 
    <mx:ApplicationControlBar dock="true">
        <mx:Form>
            <mx:FormItem label="showGripper:">
                <mx:CheckBox id="checkBox" selected="true" />
            </mx:FormItem>
        </mx:Form>
    </mx:ApplicationControlBar>
 
</mx:WindowedApplication>

Next, edit the application’s XML file and edit the following lines:

<!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
<systemChrome>none</systemChrome>
 
<!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
<transparent>true</transparent>

Leave a Comment

Spam Protection by WP-SpamFree