Center a PopUp window title?

How do Center you a popup window title when it is larger than its parent display object?

Is there an easy way to find the root display object application?

Thank you
George

If your global application is more complicated, and you want pop ups to appear (possible) of several instances of the other components, you can watch in the ViewHelper/ViewLocator of Caringorm model.

http://labs.Adobe.com/wiki/index.php/Cairngorm

It would be a good initiative to implement that if things have the potential to become complex.

A simple solution would be to keep a static variable in your root component that you can reference other components when creating your PopUps centered.

Then, do something like:

[PopUpRoot.mxml]

Initialize = "{PopUpRoot.View = this.document}" > "

public static var object: view = null;
]]>

Then, when you call PopUpManager.createPopUp () from anywhere in your application, put it:

PopUpManager.createPopUp (PopUpRoot.view as DisplayObject, MyPopUpClass);

FYI, you can call PopUpManger.centrePopUp (this) in the event creationComplete of the MyPopUpClass handler.

HTH

Tags: Flex

Similar Questions

  • "Unknown popup window titled" information "appears with the message please wait a few moments.

    Original title: window unknown popup

    I'm under THAT XP SP 3 fully updated; Mozilla Firefox version 7.0.1 - I keep getting a small pop up window titled 'Information' with the message: Please wait a few moments. It has a small clock on the left side of the field. Only momentary and random. I ran Mcafee virus scan and webroot spyware with no prob on either. Is this some sort of spyware or what?

    Hello

    1. find this jump up while working on Mozilla Firefox?

    I suggest that you initialize in a clean boot state and check if the problem persists.

    Put your boot system helps determine if third-party applications or startup items are causing the problem. If so, you need to maybe contact the manufacturer of the program for updates or uninstall and reinstall the program.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note:

    How to configure Windows to use a Normal startup state

    After you have used the boot is a way to solve your problem, you can follow these steps to configure Windows XP to start normally.

    (a) click Start and then click Run.

    (b) type msconfig and click OK.

    The System Configuration Utility dialog box appears.

    (c) click on the general tab, click Normal Startup - load all services and device drivers and then click OK.

    (d) when you are prompted, click on restart to restart the computer.

  • Component of Popup to align to the center of the window

    Hello
    I have the following code

    < af:popup id = "of dialogue" >
    < af:dialog title = "confirm deletion of" type = "YesNo" dialogListener = "#{DeleteDocumentBean.deleteDocumentHandler} '"
    ID = "d3" >
    < af:outputText value = "Sure you want to delete the document?" / >
    < / af:dialog >
    < / af:popup >

    What should I do if I want my popup component to the center of the window
    I went through this link, but I did find something useful

    http://jdevadf.Oracle.com/ADF-richclient-demo/docs/tagdoc/af_popup.html

    Concerning
    Mayur Mitkari

    Hello

    you just open the dialog box without specifying an id match or align orientation (to only provide the ID of popup in the showPopupBehavior tag added to the order launching the popup)

    Frank

  • Every 10 minutes, I get a popup window of Microsoft Windows error: Dell Support Center has stopped working

    Every 10 minutes, I get a popup window of Microsoft Windows error: Dell Support Center has stopped working. A problem caused the blocking of the program works correctly. Windows will close the program and notify you if a solution is available.

    I uninstalled Dell Support Center via the Control Panel, run the virus and malware scans installed a restore of a month before this problem point and continues.

    Hello

    Dell has their own Forums of Support for you to enquire about Dell software issues.

    http://en.community.Dell.com/support-forums/default.aspx

    See you soon.

  • Since its installation in Firefox 20.0.1. There is a box in the center of my screen titled progress install with a bar running below the Green progression.

    Please help this driving me Mad
    Since the installation of Firefox 20.0.1. on my MS Windows 7 Toshiba Laptop there was a box in the center of my screen titled "progress install < with a bar running below green growth."
    Firefox 20.0.1 (FF) works very well and I can drag the box of progress on my screen to my heart's content. Although there no small cross at the top right I can get rid of him by my mouse over the icon (ff), pinned to taskbar program in hover. This gives me a box of progress of installation with small cross, click and his party. That is until I got close and restart (ff) and back it comes in the middle of the screen. I tried to get rid of it through CTRL-ALT-DEL Task Manager, but even once, it reappears on start up (FF) I also stripped (ff) of my machine, once using widows uninstall/change of MS program features and for the second time by using third-party software as soon as I reinstall (ff) new same old problem.
    Thank you
    Cordially Fenfolly

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode safe or make changes.
  • Windows 7 Action Center indicates that Windows and McAfee Antivirus & Firewall are both disabled.

    Original title: Jlj1952

    My Windows 7 Action Center indicates that Windows and McAfee Antivirus & Firewall are both disabled. McAfee analysis shows that everything works. Looking @ my control panel shows Microsoft Firewall is enabled. Can someone tell me why I started getting these messages that no protection exists? Thank you.

    Kind regards

    James

    Hi James,

    1 did you change on your computer?
    2. do you get an error message?

    This problem could be related to Mcafee. Please temporarily disable Mcafee and check.

    Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    If the problem does not persist, then there are certainly problems with Mcafee protection. In this case, please contact Mcafee support for assistance.

    Just reply with the results.

    Thank you

  • Internet Explorer window title

    In Windows 7, the application now shows the title of popup window with url to the document.title we set programmatically.  For example, instead of 'name, name - title name' it says 'https://...com/last name - name of the title.

    Is this some kind of customization, we need to change to make it work as before?

    Hi Nathalie,.

    The issue of Windows is more complex than what is generally answered in the Microsoft Community Forums. Appropriate in the MSDN Forums. Please post your question in the MSDN Forums.

    You can check the link to post your question:

    http://social.msdn.Microsoft.com/forums/en-us/iewebdevelopment/threads

    I hope that helps!

  • How to enter the text message written in a popup window?

    Hello
    I tried the functional test of web application using OATS? I have to use the SMS (for comparison with text) written in a Popup. So can someone tell me how to enter and the message of written text in a popup window?

    String test_1 = web.element (35, ' / web: window [@index = '1' or @title = 'SOME TEXT']/web:document[@index='1' and @name = 'frame_OAT1'] / web: div [@texte = "domain errors exist." ") ') .getAttribute ("text");

    The problem with the above line is that Openscript will look for a div with text 'errors in domain exist.' element and if it locates it then she returns the value attribute of text which is "domain errors exist." This exercise don't purge not any purpose.

    If you want to know any text that comes in this div, you must get the index and print this text in this index.

    In case you just want to check, you can use exists() which gives a Boolean result directly. Like this

    Boolean IsExists = web.exists ("/ web: window [@index = '1' or @title = 'SOME TEXT']/web:document[@index='1' and @name = 'frame_OAT1'] / web: div [@texte = 'errors in domain exist.']", 1);

    The official guide are in the downloads page.
    http://www.Oracle.com/technetwork/OEM/downloads/index-084446.html
    Download the item named "Oracle Application Testing Suite 9.2.1 - Documentation" on this page.

    In addition, you said just by writing @index you were unable to retrieve the value. Make sure that the index of the div does not change each time. If it evolves so it is more difficult and it is a whole new discussion.

    Just index values get incremented. For example, if your window generates a pop-up window, your main window has an index of 0, your popup has an index of 1.

    Tell me how it goes.

    Kind regards
    Narayan

  • How to display images in the Lightbox popup window or click the link to the map image Dreamweaver?

    I've built several image maps on a base image I want to use to display different pictures. I used successfully of Lightbox to display individual text pictures or thumbnails, but don't know how to make this work of image maps in Dreamweaver 8 and cannot even change the Dreamweaver onmouseover command coded so that it works from an action to click instead of a passage from the mouse that ridiculously open a popup window each time it is a passage of the mouse the map image.

    OnMouseClick nor onclickonly allow me to change the action that I would really rather have open in the viewer anyway.

    Here's what Dreamweaver is scripted for me (with a few small jacking to run):

    < area onclick = "CSAction (new Array(/*CMP*/'sp01')); "return CSClickReturn()' shape ="circle"coords ="552,439,9"href =" # "rel ="lightbox [kitchen]"title =" "alt =" "onclick =" MM_openBrWindow (' I / 01.jpg ', ", 'resizable = yes, width = 667, height = 505') ' csclick ="sp01"/ >"

    And here's what I usually script Lightbox text or thumbnail image link, but do not know how combine this with Dreamweaver image map code to make it work:

    "< a href ="... /... /.. "/ I/image.jpg" rel = "lightbox [kitchen]" title = "Title" > link text (or tile) < /a >

    I have problems with file is available online at:

    http://lifegivingspring.info/LGs/about/study/siteplan/

    I can see your problems, so I changed the image with your arrows and put some fotos below them in the lightbox you want:

    The upperone with the visibly frames (frames set to '1') of the worksheet, the other is completely identical, I only put managers to '0 '.

    OK dstx, please take a look once more here: http://www.goldschmiede-blumberg.de/PartnerringeAm.php.

    Hans G.

    HCH

  • Tree in a popup window

    Hello

    I wish I had a popup of the tree in a window when I click on an item in a form (source of the element is identical to the id of/pid tree) and letting the user select something in the tree and it is assigned to the question on the form that is to say I want to be able to change the ID of the parent if I want to. If someone has done something like this? I don't know how to make a popup page by clicking on the element, but how to make a tree? Thank you.

    Suni

    Hello

    That's what I did:

    1. I created a new page in the tree (number 2 on page).

    Model of the page is 'Popup '.

    The tree SQL statement is:

    select "EMPNO" id,
           "MGR" pid,
           "ENAME" name,
           null link,
           EMPNO a1,
           null a2
    from "#OWNER#"."EMP"
    

    Notice that I used "EMPNO a1" in what we use the substitution #A1 string # in the model tree.

    2. I then updated the parameters of the model of the tree (only those shown have been changed, all the others remain unchanged):

    (Text of node templates section)
    Model parent node:

    <tr>#INDENT#<td colspan="#COLSPAN#" valign="CENTER" class="tiny"><a href="#" onclick="javascript:passBack('#A1#');">#NAME#</a> #DRILL_UP#</td></tr>
    

    Model text node:

    <tr>#INDENT#<td colspan="#COLSPAN#" valign="CENTER" class="tiny"><a href="#" onclick="javascript:passBack('#A1#');">#NAME#</a></td></tr>
    

    In both cases, #NAME # now was wrapped in a tag A that will be used to perform a passback() function that transfers the selected value back to the original page and close the window popup.

    #A1 # out of two will be replaced by the EMPNO value for each item

    3. on the page of the tree, I added in a Hidden element page called P2_ITEM_ID. This element will be used to contain the ID of the item that needs to be filled with the value selected on the original page. There are no special settings for this element.

    4. I created an unconditional branch to page 2 to point to page 2 - not strictly necessary, but I always make sure that each page has an unconditional branch!

    5 - Finally, on page 2, I added the following in the HTML of the page header:

    <script language="JavaScript">
    function passBack(val)
    {
      var id = $v('P2_ITEM_ID');
      opener.document.getElementById(id).value = val;
      window.close();
    }
    </script>
    

    When the user clicks on an item in the tree, this function is called. First, it gets the ID of the element to be filled and then passes the value chosen for her. Then, it closes the current window.

    6 - now, on my form page (page 4), I need to add two things. First, as part of header HTML of the page, I added:

    <script language="JavaScript" type="text/javascript">
    function callpopup()
    {
      var url = 'f?p=&APP_ID.:2:&APP_SESSION.::::P2_ITEM_ID:P4_MGR';
      var w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
      if (w.opener == null)
      {
        w.opener = self;
      }
      w.focus();
    }
    </script>
    

    7. and, in the text of Post item for the item page P4_MGR, I added:

    <a href="#" onclick="javascript:callpopup();">Select manager</a>
    

    This adds a link after the P4_MGR point on the page. When you click on it, this triggers the callpopup() function that creates a URL (note that I'm passing 'P4_MGR' in P2_ITEM_ID so that the popup page knows which element to update) and the display URL in a new popup window.

    Andy

  • Setting the default size of the popup window

    I need a way to set the default size of the popup window on a specific area or all areas (whichever is easier). There is a particular site that pulls up a PDF in a pop-up window, and always default to a small window, but I need full screen. Apart from the obvious 'simply click on the button full screen every time ", can someone offer me some suggestions? If it were me, I'd just hit the button fullscreen, but I'm trying to set it up for some end-users rather capricious. The device in question (if important) is a Tablet from Dell XPS 18, and the version of Firefox is 24.0, just installed about twenty minutes ago. Forums for research, the only thing I found remotely close to what I'm looking for is to force the popup to allow resizing; This isn't what I need; the pop-up window already allows resizing. I need a way to automatically open it full screen. Thanks in advance for your help.

    Where the tab setting you are interested in I mentioned, the method to define who is in this previous post: https://support.mozilla.org/en-US/questions/968159#answer-469644

  • How can I display form details in a popup window?

    Recently, called assist of Babylon took control of Firefox and I had to reset Firefox to get rid of it. As a result, I lost the ability to right-click on a page and select from a list that allowed me to view the details of the form in a popup window. I've used this feature frequently to develop database applications that have many forms. Can someone tell me please how to restore this beautiful feature? I found something that opens a new tab with the form information in a large format that is rather ugly - I really want to come back for the nice small automatic that displays the information of the base form.

    I think're missing you an extension you used before. After using the Reset, a folder is created on the desktop with a name similar to "Old Firefox settings." If you open this folder, you will find a subfolder named extensions that contains your previous collection. The problem in using this as a point of reference, it is that a lot of extensions is stored in a GUID rather than their friendly name. But it could still be worth a visit, and you could Google the GUID to see if find you any matches.

    P.S. I'm curious to know what it was.

  • Why hide the menu bar hide the window title?

    [FF4.0] if I uncheck the (upper area of the R click) menu bar the title in the title at the top of the window bar also disappears. IE9 doesn't have a title bar empty! What is with the loss of the title bar? It is really useful...

    Take a look at this extension,

    https://addons.Mozilla.org/en-us/Firefox/addon/Aero-window-title/

  • HP Photosmart C5100: hp c5100 grave Solution Center crashes after windows kb3132372 10 update

    Solution Center crashes after Windows update KB3132372 10 (December 29, 2015).

    The Windows Device Manager shows not installed printer as on a regular basis.

    Printer will print but scanning is very heavy and the ink levels will not appear.

    Uninstall and reinstall will not work.  Software will work properly only if Windows update is uninstalled.

    Is there another solution for this?

    Hello

    Microsoft has since released a new update for this problem.

    Fix solution:

    Please download and install the following update KB3133431 from Microsoft:

    https://support.Microsoft.com/en-us/KB/3133431

    Note This update is available through Windows Update only. (Updates )  must be lit)

    1. Click the Start button, select 'Settings' and select 'Making day & security'
    2. Under "Windows Update", select "Advanced Options".
    3. Under "Choose how updates are installed," select "automatic (recommended) in the drop-down list in the menu drop-down."

    Hope that helps.

    Please click the "accept as solution" if it helped to solve your problem and "Bravo Thumbs up" as an encouragement

  • Call of Asinchronous of POPUP window

    I want to call an asinchronously of popup in my main application window, so it does not interrupt execution. The user may leave this window open and during this time of work in the main window. I want to wear the pop-up to the front, if the user re - opens the context menu while it has already been called. I know how to call the asinchronously popup but the vi will work again when collapsed many times you "sacrificed." So I want just the popup window to move forward if it is already active, instead of reopening when I close. PD: the popup window does not return all the data of the main application.

    I ended up doing this. (see attachment vi).

    The pop-up is ment to display information to the user that is loaded from CSV files directly from the pop-up window and then selected by the user as well. So it returns no data for the main program.

    If you find something wrong/plaster to do this way please tell. Thank you!

    PD: Ignore the comment on MainVi. He now works as expected.

Maybe you are looking for