PDA

View Full Version : [HELP] Application Window and Ext.Viewport



Phunky
5 Mar 2008, 2:51 AM
Im just starting to really mess with Ext and Air and i'm trying to tie up functionality between the Ext.Viewport and the Air Application Window.

Of course i want to get it to a point where im controling the Air Application Window via the Ext.Viewport but for now im just trying to get them being the same size :)

How has other people tackled this??

I noticed that the Doc's Air example starts out minimized and all the Windows control is done via Air.

Phunky
5 Mar 2008, 3:21 AM
I've got it working :D being silly before trying to use a Window when i should have just used Viewport as planned!

Now i just need to find out how i can drag the Air Window, Minimize, Maximize and Close all from the Viewport now ;)

Oh this is going to be a fun day :D

Phunky
5 Mar 2008, 4:13 AM
I'm unsure if Ext.Viewport is ideal to use with Air, well at least with a chromeless Air window.

I mean how would we go about being able to drag the Air window from the Title of the Viewport? Sure we can use tools to max,min and close the Air NativeWindow but im unsure how to go about moving the window?!

Anyone out there attempted this?

sven
5 Mar 2008, 6:29 AM
http://extjs.com/blog/2007/06/29/building-a-desktop-application-with-ext-air-aptana-and-red-bull/

Download the air file, rename it to zip and study the Ext.air.MainWindow class.

Phunky
5 Mar 2008, 6:40 AM
Thank you for the heads up on that sven, looks just like the kinda thing im after.

cheers!

Phunky
5 Mar 2008, 7:51 AM
After reading throug that above linked example its obvious that Ext.Viewport is not ideal for Air apps although it does work!

Now as the linked example is a little bit old and we have since had a version of Ext released that supports Air i was wondering if something like the Ext.air.MainWindow has been already included in the latest version of Ext??

Kinda some form of Viewport for Air? for now i will follow the example and just extend panel myself but i would be intrested to know what new functionality is within Ext for Air as im guessing its not in the Docs yet.