View Full Version : NativeWindowType
kiarash.M
08-07-2008, 12:28 PM
hi, how to work with this Class: NativeWindowType
to have app without taskbar and system chrome ..
tanQ .. ..
evride
08-07-2008, 07:01 PM
sorry, every NativeWindow you create will show up in the taskbar. Hopefully they add will add another option for AIR 2.0 and no its not coming out soon.
to make a window with no chrome this is the code you would use:
var woptions:NativeWindowInitOptions = new NativeWindowInitOptions();
woptions.systemChrome = NativeWindowSystemChrome.NONE;
woptions.transparent = true; // im guessing you want it transparent as well.
var NWindow:NativeWindow = new NativeWindow(woptions);
NWindow.title = "Place Title Here";
NWindow.activate();
are you looking to make a widget application?
kiarash.M
08-08-2008, 03:39 PM
TanQ for info .. but it made a new NativeWindow.. I want to set my mainNativeWindow to NativeWindowSystemChrome.NONE mood ...
and i think with woptions.type = NativeWindowType.LIGHTWEIGHT hide taskbar .. !! it is false??
evride
08-09-2008, 01:45 PM
ok, ya in testing the other day i thought i showed up on the taskbar but I guess i made a mistake.
anyways, no LIGHTWEIGHT does not show up in your taskbar.
var dude:MovieClip = new MovieClip();//create an MC to put on the new window
dude.graphics.beginFill(0x000000);
dude.graphics.drawRect(0,0,200, 300);
var woptions:NativeWindowInitOptions = new NativeWindowInitOptions();
woptions.type = NativeWindowType.LIGHTWEIGHT;
woptions.systemChrome = NativeWindowSystemChrome.NONE;
woptions.transparent = false;
var NWindow:NativeWindow = new NativeWindow(woptions);
NWindow.activate();
NWindow.width = 500;
NWindow.height = 500;
NWindow.stage.scaleMode = StageScaleMode.NO_SCALE;
NWindow.stage.addChild(dude);
kiarash.M
08-09-2008, 06:26 PM
tanQ alooot ..BUt i want LIGHTWEIGHT mood for main window ...
with Your method I have to closed my main app win with this
stage.nativeWindow.close();
and make a new win and then change this type ...:rolleyes:
I want to know
what this script not work ???
stage.nativeWindow.type = NativeWindowType.LIGHTWEIGHT;
i want to change stage.type ..... :rolleyes:.....
kiarash.M
08-09-2008, 06:33 PM
in finaly i want to make app without taskbar ....(tanQ))))))
kiarash.M
08-11-2008, 03:57 PM
I want to make a app without taskbar .... ..hoW?????
evride
08-11-2008, 05:44 PM
lol. you could have just bumped the other thread. since you can't change window type after its been added, the only way i think you can create an application with no taskbar is to create a movieclip with everything inside it. then once the program is started you create a new leightweight window and add the movieclip with everything in it, and then close the main window.
sorry i misunderstood your question several times. lol.
kiarash.M
08-11-2008, 05:54 PM
it is tooo bad /:)
evride
08-11-2008, 06:03 PM
ya, but its doable.
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.