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

查看:183
本文介绍了的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.

商务部对你的案件的关键部分:

The key part of the doc for your case:

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

由于初始窗口   类型的必然,正常,为了   创建没有任何一个应用程序   窗口在任务栏中显示,你   必须关闭inital窗口或   离开它无形。

Because the initial window is necessarily of type, normal, in order to create an application without any windows appearing in the taskbar, you must either close the inital window or leave it invisible.

要关闭所有   窗口的应用程序,而不   终止应用程序,设置   的autoExit属性   NativeApplication对象为假   收盘前最后一个窗口。至   只需prevent从intial窗口   变得不可见,加   假的    的元件   应用程序描述符文件(并   不要设置visible属性为true   或致电的激活()方法   窗口)。

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

在打开的新的Windows   应用程序,设置的type属性   该NativeWindowInitOption对象   传递给窗口构造   NativeWindowType.UTILITY或   NativeWindowType.LIGHTWEIGHT。

In new windows opened by the application, set the type property of the NativeWindowInitOption object passed to the window constructor to NativeWindowType.UTILITY or NativeWindowType.LIGHTWEIGHT.

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

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