简体   繁体   中英

Adobe Air: Start native window hidden

How do I open a new window as hidden? (note the visible="false" )

<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009" 
      xmlns:s="library://ns.adobe.com/flex/spark" 
      xmlns:mx="library://ns.adobe.com/flex/mx" 
      showStatusBar="false"
      resizable="false" 
      visible="false">

If I declare a window this way, and then call this.open(false); , the window will quickly open and then hide, and then be reshown when I actually display it, which is quite ugly.

I want to do this to be able to load content and fit the window to that size before showing it.

我能够在应用程序的预初始化事件处理程序中将应用程序设置为不可见(visible = false),并在handleOnInvoke事件处理程序中将其设置为可见。

If you don't use systemChrome, you can set initial and minimal size to zero, otherwise system header will be visible. SystemChrome also prohibits use of transparency, so I see no way to make hidden window with it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM