AIR:如何将 NativeWindow 类型设置为 Utility
nativeWindow支持systemChrome(standard,none)和透明(false,true);这些选项位于 Adobe AIR 应用程序描述符文件 (xml) 中
<!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
<!-- <systemChrome></systemChrome> -->
<!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
<!-- <transparent></transparent> -->
,但我找不到设置窗口类型(实用程序、正常、轻量级)的选项,如 Air 应用程序 -> 下的 TourDeFlex 上所示。 AIR API 和技术 ->本机 Windows。
可以从应用程序中作为只读属性进行访问。
设置这个属性的正确位置在哪里?
一个很好的用法示例是:minitask.org
谢谢!
编辑:窗口应以实用模式启动
The nativeWindow supports systemChrome (standard,none) and transparent (false,true); These options are in the Adobe AIR Application Descriptor File (xml)
<!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
<!-- <systemChrome></systemChrome> -->
<!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
<!-- <transparent></transparent> -->
But I can't find the option to set the window type (utility,normal,lightweight) as seen on the TourDeFlex under Air Applications -> AIR APIs and Techniques -> Native Windows.
From the application can be accessed just as a read-only property.
Where's the right place to set this property?
A good example of usage could be: minitask.org
Thanks!
Edit: The window should start in the UTILITY mode
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须将 NativeWindowType 设置为您的窗口通过 NativeWindowInitOptions 的
type
属性。更多信息请参见:AIR 窗口基础知识
you have to set the NativeWindowType of your window via NativeWindowInitOptions's
type
property when you instantiate a window.more here: AIR Window Basics
您可能无法使用主应用程序窗口执行此操作。您可以使用的一个技巧是:
这只会打开一个新的实用程序窗口,并关闭主应用程序窗口
You may not be able to do this with a main application window. A trick you could use is:
this just opens a new utility window, and closes the main application window
this.type = NativeWindowType.UTILITY;
this.type = NativeWindowType.UTILITY;