Flex-AIR:在任务栏中创建没有选项卡的应用程序? [英] Flex-AIR: Make application with NO tab in taskbar?

查看:27
本文介绍了Flex-AIR:在任务栏中创建没有选项卡的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在有一个 AIR 应用程序大约完成了一半.今天客户通知我他不希望在他的任务栏中显示选项卡.我已经通过使它们变得轻量级来为新窗口准备好.我不知道如何使主窗口轻量级.如果没有办法,是否有解决方法,例如没有主窗口而只是打开轻量级窗口,但也不知道如何做到这一点?有人知道怎么做吗?

I have an AIR app about half way done right now. I was informed by the client today that he does not want a tab to show up in his task bar. I already have this in place for new windows by making them lightweight. I do not know how to make the main window lightweight though. If there is not a way, is there a work around, like not not having a main window and just opening lightweight windows, don't know how that could be done either though? Anyone know how to do this?

谢谢!

推荐答案

检查 这个文档出来. -- 是的,你可以这样做.简而言之,您必须隐藏初始窗口 - 然后在轻量级窗口中显示您的应用程序.

Check this doc out. -- Yes, you can do this. In short, you have to hide the initial window - then display your application in a lightweight window.

另外 - 请注意:在 Mac 上 - 行为是不同的.按照惯例,窗口在显示时不会显示在任务栏"中.当它最小化时,它在栏中.要在 Mac 上最小化时隐藏应用程序 - 您必须使窗口不可见",而不是将其最小化.上面提到的文档提供了更多详细信息.

Also - do note: On a Mac - the behavior is different. By convention, a window is not shown in the 'task bar' when it is displayed. When it is minimized it is in the bar. To hide the application when minimized on a Mac - you have to make the window 'invisible' instead of minimizing it. The doc mentioned above gives further details.

文档的关键部分:

在 Windows 操作系统上,使用类型实用程序创建的窗口或轻量级不会出现在任务栏.隐形窗户不出现在任务栏上.

On the Windows operating system, windows created with the types utility or lightweight do not appear on the taskbar. Invisible windows do not appear on the taskbar, either.

因为初始窗口是必须是类型的,正常的,有序的创建一个没有任何应用程序出现在任务栏中的窗口,您必须关闭初始窗口或让它不可见.

关闭所有应用程序中的窗口没有终止应用程序,设置的 autoExit 属性NativeApplication 对象为 false在关闭最后一个窗口之前.到简单地防止初始窗口变得可见,添加假的的元素应用程序描述符文件(并执行不将可见属性设置为 true或调用 activate() 方法窗口).

To close all windows in your application without terminating the application, set the autoExit property of the NativeApplication object to false before closing the last window. To simply prevent the intial window from ever becoming visible, add false to the element of the application descriptor file (and do not set the visible property to true or call the activate() method of the window).

在打开的新窗口中应用程序,设置类型属性NativeWindowInitOption 对象传递给窗口构造函数NativeWindowType.UTILITY 或NativeWindowType.LIGHTWEIGHT.

这篇关于Flex-AIR:在任务栏中创建没有选项卡的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆