Native Window on Top

Is there a way to make a Native Window always stay on top? I
dont want it to neccessarily be completley modal where you cant
interact with the underlying program, I just want it to always be
on top.
Is this possible?
Thanks.

Set the window alwaysInFront property to true.

Similar Messages

  • Incorrect functionality of Embedded tag in html page, displaying object on top of all layers of Adobe air application native window

    Title
    Incorrect functionality of embed tag in html loader for adobe air development
    Description
    Problem Description: If we had loaded youtube.com video url in a view stack and navigate to other index of stack or away from we UI screen within the same native window video or embeded tag of flash player or any other embed object will be displayed on top of all screens layer in same position of where the object should be placed in side of html loader only.
    Steps to Reproduce:
    1) go to http://get.straweb.com/StraWebBrowser/StraWebBrowser.air download and install
    2) load 2 tabs and in the 3 tab load video player of youtube.com which will a sample video
    before completing the load of 3 tab which trying to load video from youtube.com, navigate to other tabs 1 or 2 in few second once the flash player of youtube.com video player is load it will display in the current tab or UI screen.
    3) Try navigating to other tabs than youtube.com loaded tab you see the flash player is on top it stable.
    4) navigate to 3 tab and try to navigate to other tab you can observe that so how it will not show that flash player and only visible in that 3 tab which is fine.
    Actual Result: Embedded tag of html page displaying on top of all layers of Adobe air application native window
    Expected Result: Embedded tag of html page should only displayed in side htmlloader
    This you can replicate in any adobe air plugin update and on any Hardware and Environment.
    Applicable to all sdk versions of adobe air.

    Adobe Bugbase: Bug 3823839 Incorrect functionality of embed tag in html loader for adobe air development

  • FLV Playback and Seekbar on different native windows in one Air application

    Hello Everyone.  I'm trying to make a simple video playback AIR application that utilizes the initial native window to house a transport control with a seekbar on it.  Once the application launches, it creates a second (new) window on my second screen and places a FLVPlayback instance on that new window.  Everything works just like it want it to except for one thing.  When the seekbar and FLVplayback instance are not located on the same window stage, the seekbar handle sticks to the mouse when trying to scrub through the video.
    I've added both the transport control and the FLVPlayback instance to the original native window as children and I have also added both of them to the new window as children and everything works just fine.  It's only when they are separated and located on different stages that the seekbar acts up.  When they are on the same stage, I can click on a point on the seekbar and the video jumps to that spot and continues to play and I can also scrub the seekbar, the video updates as I scrub, and when I release the mouse, the seekbar handle stays where I released the mouse.  When they on separate stages, the seekbar handle continues to follow the mouse movement without releasing it.  The video updates as the seekbar handle is moved due to it sticking to the mouse, but if I release the mouse, the handle is still moving with the mouse and the video is still being scrubbed.  Like I said, everything works great except for this and I have reached my limit with time spent on this issue.  Does anyone have any insight into this?
    Here's my code for the project.  This is my first AIR application, so I am coding it as I am learning, please be kind.
    import fl.video.*;
    import flash.display.*;
    import flash.desktop.*;
    import flash.events.*;
    import fl.video.MetadataEvent;
    import flash.geom.*;
    import flash.ui.Mouse;
    import flash.text.*;
    GLOBAL SETUP
    var flvControl:FLVPlayback;
    var MasterWindow = stage.nativeWindow;
    var screen1:Screen = Screen.screens[0];
    var screen2:Screen = Screen.screens[1];
    MASTER WINDOW SETUP
    this.loaderInfo.addEventListener(Event.COMPLETE,maximize);
    transControl.playPauseButt2.addEventListener(MouseEvent.CLICK, PlayButton);
    if (Screen.screens.length > 1){
              createVideoBKG();
              createVideoPlayer();
    GENERAL FUNCTIONS
    //Maximize the initial screen
    function maximize(e:Event) {
              MasterWindow.x = screen1.bounds.left
              MasterWindow.maximize();
              MasterWindow.stage.scaleMode = StageScaleMode.EXACT_FIT;
    //Hide Mouse Behind Video Window On Roll-Over
    function MouseRollOver(e:MouseEvent):void
              {          Mouse.hide()          }
    function MouseRollOut(e:MouseEvent):void
              {          Mouse.show()          }
    //Play-Pause Button Control
    function PlayButton(event:MouseEvent):void
                        if(transControl.playPauseButt2.currentFrame==1 ){
                                  transControl.playPauseButt2.gotoAndPlay(2);
                                  flvControl.play();
                        else {
                                  transControl.playPauseButt2.gotoAndPlay(1);
                                  flvControl.pause();
    function CloseWindow(e:MouseEvent):void
                        NativeApplication.nativeApplication.openedWindows[2].close();
    VIDEO BKG SETUP
    function createVideoBKG(e:Event = null):void{
              var newOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
              newOptions.type = NativeWindowType.LIGHTWEIGHT;
              newOptions.systemChrome = NativeWindowSystemChrome.NONE;
              newOptions.transparent = true;
              var videoBKG:NativeWindow = new NativeWindow(newOptions);
              if (Screen.screens.length > 1){
                        videoBKG.x = screen2.bounds.left;
              videoBKG.maximize();
              chromeSetup(videoBKG);
              videoBKG.activate();
    //Video BKG Chrome Setup
    function chromeSetup(currentWindow):void {
              var vidBKG = new video_bkg();
              vidBKG.name = "video_bkg2";
              vidBKG.addEventListener(MouseEvent.ROLL_OVER, MouseRollOver);
              vidBKG.addEventListener(MouseEvent.ROLL_OUT, MouseRollOut);
              currentWindow.stage.addChild(vidBKG);
    VIDEO Player SETUP
    function createVideoPlayer(e:Event = null):void{
              var newOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
              newOptions.type = NativeWindowType.LIGHTWEIGHT;
              newOptions.systemChrome = NativeWindowSystemChrome.NONE;
              newOptions.transparent = true;
              var videoPlayer:NativeWindow = new NativeWindow(newOptions);
              if (Screen.screens.length > 1){
                        videoPlayer.x = screen2.bounds.left;
                        videoPlayer.y = screen2.bounds.top;
                        videoPlayer.width = screen2.bounds.width;
                        videoPlayer.height = screen2.bounds.height;
                        videoPlayer.stage.scaleMode = StageScaleMode.NO_SCALE;
              videoPlayer.alwaysInFront = true;
              var DVR = new DVR_Player();
              DVR.name = "DVR";
              DVR.x = 0;
              DVR.y = 0;
              DVR.addEventListener(MouseEvent.ROLL_OVER, MouseRollOver);
              DVR.addEventListener(MouseEvent.ROLL_OUT, MouseRollOut);
              videoPlayer.stage.addChild(DVR);
                flvControl = DVR.display2;
              flvControl.width = 1280;
              flvControl.height = 720;
              flvControl.skin = null;
              flvControl.autoPlay=false;   
              flvControl.isLive=false;
              flvControl.fullScreenTakeOver = false;
              flvControl.align = VideoAlign.CENTER;
              flvControl.scaleMode = VideoScaleMode.NO_SCALE;
              flvControl.source = "olympics.f4v";
              flvControl.seekBar = transControl.seekbarContainer2.seeker;
              videoPlayer.activate();

    Does anyone have any ideas about this?

  • Resize a native window content mantain the aspect ratio..

    Hello,
    I'm using this code top open a native window and load an external SWF into it.
    var tableWindow:NativeWindow;
    var options:NativeWindowInitOptions = new NativeWindowInitOptions();
    options.systemChrome = NativeWindowSystemChrome.STANDARD;
    options.type = NativeWindowType.UTILITY;
    tableWindow = new NativeWindow(options);
    tableWindow.title = 'MyWin';
    tableWindow.width = 600;
    tableWindow.height = 500;
    tableWindow.stage.color = 0x000000;
    tableWindow.stage.scaleMode = StageScaleMode.NO_SCALE;
    tableWindow.stage.align = StageAlign.TOP_LEFT;
    tableWindow.addEventListener(NativeWindowBoundsEvent.RESIZING, resizeDisplay, false, 0, true);
    tableWindow.addEventListener(Event.CLOSE, closeWin);
    tableWindow.activate();
    after opening a window i load the swf into it:
    var loader:Loader = new Loader();
    var context:LoaderContext;
    context = new LoaderContext();
    context.allowCodeImport = true;
    context.applicationDomain = new ApplicationDomain();
    loader.load(new URLRequest("app:/myswf.swf"), context);
    loader.contentLoaderInfo.addEventListener(Event.INIT, loadFlash);
    I have several problems.. if i use a ScaleMode different than NO_SCALE in main swf and/or in the loaded SWF the file is shown wrong. I have a correct window but the swf is displayed HUGE into the window.. so i've decided to use NO_SCALE as ScaleMode
    Is there a way to mantain the aspect ratio of the window AND (more important) resize ALSO the swf loaded into it?
    Thank you

    I rarely do Flex but I've done a lot of AIR for AS projects and I find their windows to have this bizarre behavior as well.
    I think 2 things are important in my limited experience. To keep aspect ratio I set it to NO_BORDER. This maintains the aspect ratio but also allows resizing.
    Second on my main class I explicitly set the main SWF to a height and width:
    e.g.
    package yada {
         [SWF(width=xxx,height=xxx)]
         public class MyApp extends.....
    If I didn't set that in the AS3 code explicitly (the XML didn't matter at all) the SWF would be the original size. Now your content should be at the size you specify in your window and allow resize.
    Lastly, you're already paying attention to resizing:
    tableWindow.addEventListener(NativeWindowBoundsEvent.RESIZING, resizeDisplay, false, 0, true);
    I think you need to handle that manually. As the user intends to grow or shrink the window you need to override their resize and set the height and width explicitly based on what they try to do, forcing the outer windows size to always be a proper aspect ratio.

  • Keeping a window on top using JNI.

    Hi,
    We would like to keep a java JFrame as the top window on the screen.
    There is plenty of discussion regarding the fact that it's not possible without a native call which I accept (there is a price to pay for system independence). BUT, in my situation this isn't an issue, because it will always run on Windows.
    So... my question is how do you use the JNI to keep a window on top? I've never used JNI, so from the top please... ... ...
    Thanks in advance
    ollie lord

    Hi,
    this tutorial describes exactly what you want:
    http://community.borland.com/article/0,1410,20679,00.html
    Regards,
    Kurt.

  • Windows: Set Swing window parent to native window?

    I have a native Windows app written by someone else in C++. I am adding a menu item in that native app to invoke a dialog box. That dialog box is written in Java by me. Currently, when the dialog displays, it just uses a null JFrame for the parent. I would like to find a way to make the native app's window (I have its HWND) to be the parent for the Swing window, so this "acts" like a dialog inside the native app; IE, I'd like for it to "modally lock" the native app, and also always appear "on top of" the native app's window (currently, if the user clicks the native app window, the native app "goes on top of" the Swing dialog). Is that possible with Swing?

    Sorry if this has been explained elsewhere guys. I didnt come across it and yes, I am a newbie (don't kill me just yet)
    I too very recently upgraded to SL and in Cover flow, I cant seem to be able to adjust the window size. The preview pane covers all my folders. I resize the window so that I can see most of my folders, but the second finder is closed and re-opened, it seems to default back to the HUGE preview pane. Any ideas?

  • How to ivoke Java within native window

    The JNI tutorial says that JNI can be used (for example)to add applet support to a browser.
    Whenever I invoke classes via JNI they create their own top-level windows. How can you invoke java so that the application runs within a native window?

    Yes, that would certainly be onme way of doing it. I am sure that there is another way using native methods only that would be more efficient

  • Unable to load php file into native window..

    Hi Guys,
    Im using flash cs3 as my development environment. what i was trying to do is creating a small login application using Air. I must say im still a newbie to flash air. as far as my login system concern i have managed following tasks,
    1. send username ans password using post and validate through php
    2. get the result back to flash application and open up a new native air window if the login is success.
    3. close the login window.
    now what i want to do is load my PHP application inside that newly open native window. How can i do it. I tried using Loader() method but it only worked for images not for php or html files.
    heres how I tried to use the loader method,
    var url:String = "http://localhost/Flash/login/welcome.php";
    var fileLoader:Loader = new Loader();
    fileLoader.load(new URLRequest(url));
    win.stage.addChild(fileLoader);
    This failed.
    Does anyone know how to load a PHP file into a Native window? Your help highly appreciate it.
    Just in case for the people who wants to know who I did the above mentioned tasks heres the code,
    Posting data to PHP server
    function sendLoginData() {
         if(txtUserName.text=='')
              txtBox.text = 'Username is empty';
         else if(txtPassword.text=='')
              txtBox.text = 'Password is empty';
         else
              var variables:URLVariables = new URLVariables();
              variables.UserName = txtUserName.text;
              variables.Password = txtPassword.text;
              var request:URLRequest = new URLRequest("http://localhost/Flash/login/login.php"); 
              var loader:URLLoader = new URLLoader(); 
              loader.dataFormat = URLLoaderDataFormat.TEXT; 
              request.data = variables; 
              request.method = URLRequestMethod.POST; 
              loader.addEventListener(Event.COMPLETE, handleComplete); 
              loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError); 
              loader.load(request);
    Handdle the returned data
    function handleComplete(event:Event):void
         var variables:URLVariables = new URLVariables(event.target.data); 
         if(variables.errorcode==0)
              var url:String = "http://localhost/Flash/login/welcome.php";
              try {                             
                   //Native window
                   var options:NativeWindowInitOptions = new NativeWindowInitOptions();
                   options.systemChrome = NativeWindowSystemChrome.STANDARD;
                   options.transparent = false;
                   options.maximizable=false;
                   var win:NativeWindow = new NativeWindow(options);
                   win.title = 'welcome page';
                   //win.width = 900;
                   //win.height = 900;
                   /*var fileLoader:Loader = new Loader();
                   fileLoader.load(new URLRequest(url));
                   win.stage.addChild(fileLoader);*/
                   win.maximize();
                   win.activate();
                   stage.nativeWindow.close();
              } catch (e:Error) {
                trace("Error occurred!");
         else
              txtBox.text = 'Invalid logins';
    function onIOError(event:IOErrorEvent):void
         trace("Error loading URL."); 
    PHP code
    <?php
    $username = addslashes($_POST['UserName']);
    $password = addslashes($_POST['Password']);
    //do your database checking here. this is an example
    if($username=='niroshan' && $password=='123456')
         echo "errorcode=0"; 
    else
         echo "errorcode=1"; 
    ?>
    Call the function when pressing the submit
    cmdButton.addEventListener(MouseEvent.CLICK,readySendLoginData);
    function readySendLoginData(evt:MouseEvent){    
      sendLoginData();
    Thanks,
    best regards,
    Niroshan

    Thats right, HTMLLoader should solve the issue as Loader used for JPEG, PNG OR GIF files loading as per my knowledge

  • How do I install windows desk top

    I am unable to receive my emails on my Yahoo account, and it keeps asking me to right click on windows desk top where do I find windows desk top ?

    Hi,
    Since I know nothing about your machine (model), I can only have a guess: Normally a PC has a builtin sound card. To install a new sound card you need a spare slot on your machine OR you can use USB sound card now. Which ever way, you machine should already have a sound card. It may not have builtin microphone, speaker(s) but it should have normal jacks/plugs for a microphone and headphones.
    To use Skype, all you need is to use a normal headset (with microphone) and plug to the right ports (front or back) of your computer and let Skype know.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Iv'e had my mac for 2 weeks & now have a problem with safari since I changed to a wireless super hub.  It will not open a web site I use my iPad & windows lap top will.  Apple support say it's the DNS settings cable say there okay please can anyone help

    Iv'e had my mac for 2 weeks safari was working great until I changed to a wire less super hub.  Safari will not let me open & log into a web site I go on a lot.  My ipad & windows lap top will on the same network.  Apple have said it's the DNS setting my cable provider say it's not it's a problem with my mac.  Iv'e phoned apple lots of times same with cable provider Iv'e tried a few things it has not helped solve the problem.  I'm now advised to return my mac to the shop for a check.  Has anyone else had this problem I would appreciate any help because I'm going round in circles.

    Adding a couple of DNS numbers sometimes helps:
    System Preferences>Network, select your wifi or ethernet network on the left and click on the 'advanced' button and then the DNS tab. On the left side of the window make a note of any DNS numbers listed so that you can re-instate them if necessary and then click on the '+" button bottom left of the window. Type 8.8.8.8 and click the + again and type 8.8.4.4 save the settings and try the website again.
    BTW, I have the same problem with Firefox not letting me input my password in secure sites. I did find a workround in the network settings in Firefpx prefs, but it didn't stick so I reverted to using Chrome as alternative browser. No problems with that so long as you don't mind Google looking over your shoulder

  • How To open a PDF in New Native Window in Air

    Hi All,
    I have a Air application.I want to open an pdf located in desktop in new native window.
    Thanks,
    Amol.

    There is no easy way to implement this. Its better to instruct users the shortcut to open the link in new window.
    --Cheers

  • How do i make a pure actionscript as simple native window?

    Hello @all anythings,
    I ask about a sample pure framework by Flex for Adobe Air.
    An Example: Window with customizable buttons - If i use boolen  for visible or invisible buttons like this:
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part6_ProgAS_1.html
    For Example:
    NativeWindowPanel:
    <sm:NativeAirWindow icon="true" closable="true" minimizable="true" resizable="false">
    </sm:NativeAirWindow>
    How do i know that code with AS3. I want to build custom window for native window - Non-FlexChrome?
    Sorry my Language is same problematy...
    But I want to learn about pure actionscript for creating sample frameworks & components.... That is new native Language for German?
    Thanks and best regards...
    Snake Media Inc

    <code>
    [http://example.com text]
    </code>

  • Embedding Applet in native Windows Application

    Hi!
    I need to integrate applet into my windows application (MSVC).
    The problem is displaying applet(s) within the application's main window (just like in browser).
    Is there a way to do it? Using WebBrowser (IE) ActiveX component is unacceptable.
    Perhaps there is documentation how to use JRE browser plugin, but googling yielded no results :(

    <offtopic>Apparently my login no longer working, re-registered</offtopic>
    ActiveX bridge won't do, I have to load an applet from any .jar
    The idea is to write kind of applet loader, which may be able to load jar and display applet.
    To start with, I need to know the way of paiting Java application GUI (i.e. JFrame) inside the native window.
    There is one way I've found. First, create borderless JFrame with some unique title, then use FindWindow in C++ Application to obtain HWND (window handle), and then call SetParent. I know there is more elegant way using JAWT to obtain HWND, the main problem is that Java window is rendered separately and only then becomes a part of native window, because HWND could be get on visible window only. This results unneccessary mess and flicking on screen for user.
    So, how can I render Java GUI directly to native window?
    I used search and haven't found solution.
    Thank you!
    PS found http://forum.java.sun.com/thread.jspa?forumID=52&threadID=5124062
    but this guy haven't said how he ded that :(
    Edited by: deniska25 on Oct 15, 2007 1:52 PM

  • Netscape.javascript.JSException: Native Window is destroyed

    Supposedly this code closes the window in which the applet is displayed.
    try{
         JSObject win = (JSObject) JSObject.getWindow(this);
         win.eval("self.close();");
    catch(JSException ex){
         System.out.println(ex.getWrappedException().toString());
    catch(Exception ex){
         System.out.println(ex.toString());
    }But I am getting "netscape.javascript.JSException: Native Window is destroyed" every time I run it. I Googled this exception, and to my surprise, I got 0 results. Does anyone know what is causing this or how to avoid it?
    I tried adding the method "close_window()" to the page, and calling that function with win.eval(), but I get the same error.
    The browser in question is Firefox on Windows XP. It is running an applet in a "bare bones" windows, with no toolbars or status bars.

    I've never used that exact call, what about a slightly different method:
    try{
         JSObject win = (JSObject) JSObject.getWindow(this);
         win.call("close", new Object[0]);
    catch(JSException ex){
         System.out.println(ex.getWrappedException().toString());
    catch(Exception ex){
         System.out.println(ex.toString());
    }

  • HTMLbeforeForm= SCRIPT LANGUAGE="JavaScript" window.opener = top; /SCRIPT

    I've found this line of code in my formsweb.cfg file, but to be honest I have no clue what it's doing.
    HTMLbeforeForm=<SCRIPT LANGUAGE="JavaScript">window.opener = top;</SCRIPT>
    Anyone know what this code might be responsible for?

    I have seen this sometimes used to prevent the user being asked if they want to close the window when a javascript command to close the window is issued. Not sure it always works with different browsers or versions.

Maybe you are looking for

  • Cannot generate a PDF

    I have recently installed Acrobat XI, free trial version, on my laptop.  When attempting to "Print to PDF" from my Microsoft Publisher files, I get only "Publisher not Responding".  Thus I am unable to generate a PDF.  Any ideas?  Thank you.

  • Server upgrade now clients on Mac OS 9 not working

    We just upgraded to 904 on he server side and Mac OS 9 clients are no longer working. I downloaded the newest 9042 OS 9 client and it still will not connect to the server. Any suggestions?

  • How to map Write-Off details to GL

    Hi, I'm using cst_write_offs,cst_write_off_details tables in one of my query. I want to know how we can map these tables to the GL tables. Scenario: Need to fetch rcv_transaction_id and po_distribution_id from the above write-off tables. I am getting

  • Order being Blocked even if payment being made via financial document

    A customer has credit limit 0 and recievables in 3.5 million. The customer always makes order via LC and all his sales orders are processed with a financial document being attached. An order is made and financial document which is being attached with

  • Weblogic./SOA server not getting started-BPEL Exception @ startup

    Hi All, Environment: Weblogic /SOA 11.1.1.4 is installed on my Windows machine with 3GB RAM. I installed the development mode and i have not configured my node manager.I just used to start the admin server and it automatically starts the managed SOA