Grab close button from TitleWindow

Hi.  I'd like to use the close button in the TitleWindow in a VBox (or other container).  The TitleWindow isn't sufficient for my purposes, I pretty much just need a VBox, but I still need a close button.  Rather than dropping a button down, I'd like to maintain visual consistency and use the TitleWindow close button.  Do you know how I could get this button?  What code would I have to copy?  Once I have the button, I can attach the event handling I need to it.  Thanks!
Using Flex 3.4 in Flex Builder 3.

This should work (I grabbed the default mx:TitleWindow icon assets and used then as an mx:Button icon):
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Style>
        .titleWindowIcon {
            up-icon: Embed(source="Assets.swf", symbol="CloseButtonUp");
            over-icon: Embed(source="Assets.swf", symbol="CloseButtonOver");
            down-icon: Embed(source="Assets.swf", symbol="CloseButtonDown");
            disabled-icon: Embed(source="Assets.swf", symbol="CloseButtonDisabled");
    </mx:Style>
    <mx:Button styleName="titleWindowIcon" label="Button w/ special icon" />
</mx:Application>
Or, if you want to create a custom button and use the icon as a skin, this may get you closer:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Style>
        .titleWindowIconAsSkin {
            up-skin: Embed(source="Assets.swf", symbol="CloseButtonUp");
            over-skin: Embed(source="Assets.swf", symbol="CloseButtonOver");
            down-skin: Embed(source="Assets.swf", symbol="CloseButtonDown");
            disabled-skin: Embed(source="Assets.swf", symbol="CloseButtonDisabled");
    </mx:Style>
    <mx:Button styleName="titleWindowIconAsSkin" />
</mx:Application>
You can look at the defaults.css file here:
C:\dev\flexSDKs\flex_sdk_3.4.0.9271\frameworks\projects\framework\defaults.css
Peter

Similar Messages

  • Accessing Close button in TitleWindow

    Hi all,
    I have a situation where I'm adding buttons to a TitleWindow
    chrome. They co-exist with the close button provided by the panel.
    I create classes for my button images and then I size the buttons
    to fit the image.
    I also set the styles for the panel-provided close button
    with classes. My goal was to have all the buttons look & feel
    the same.
    Excerpt from application mxmxl ...
    <mx:Style>
    TitleWindow {
    backgroundColor: #333333;
    closeButtonDisabledSkin: Embed("assets/close.png");
    closeButtonDownSkin: Embed("assets/closeDown.png");
    closeButtonOverSkin: Embed("assets/closeDown.png");
    closeButtonUpSkin: Embed("assets/closeUp.png");
    </mx:Style>
    <v:ResizeWindow id="testResizeWindow"
    height="50%"
    width="50%"
    title="Resize Window"
    useWindowButtons="true"
    status=""
    showCloseButton="true"
    restoreWindow="this.currentState=''"
    maximizeWindow="this.currentState='maximized'"
    minimizeWindow="this.currentState='minimized'"
    close="popUp('Close button clicked')">
    </v:ResizeWindow>
    Excerpt from my ResizeWindow class ...
    override protected function createChildren():void{
    super.createChildren();
    if(useWindowButtons){
    if(btnMinimize == null){
    btnMinimize = new Button();
    var btnMinimizeImageObj:BitmapAsset = new
    btnMinimizeUpSkin() as BitmapAsset;
    btnMinimize.width = btnMinimizeImageObj.width;
    btnMinimize.height = btnMinimizeImageObj.height;
    btnMinimize.setStyle("upSkin", btnMinimizeUpSkin);
    btnMinimize.setStyle("overSkin", btnMinimizeDownSkin);
    btnMinimize.setStyle("downSkin", btnMinimizeDownSkin);
    btnMinimize.addEventListener(MouseEvent.CLICK,
    minimizeHandler);
    btnMinimize.focusEnabled=false;
    btnMinimize.visible=true;
    rawChildren.addChild(btnMinimize);
    Questions:
    1) For the buttons I add (e.g. btnMinimize) ... if I don't
    explicitly set the width and height, they default to 0 and button
    is invisible. Button class says it should size in accordance with
    the image. Is this normal behavior?
    2) Along the lines of #1 above, if I just create btnMinimize
    and give it a text label (no image), the button sizes to a width
    and height of 0. I have to set the width and height for it to
    appear? Is this normal behavior?
    3) I can't include a screen clip here but the close button
    succesfully uses the images I provide but it is larger than the
    other buttons (and the image is distorted). Can I set the height
    and width of the close button to match the image I'm providing (or
    conversely can I get the height and width of the close button so I
    can size my buttons the same)?
    Spent a few days and I'm getting nowhere ...
    thx in advance for any help ...

    Hi Laxmi,
    User has no control on OVS window.You can't  add your custom button on OVS window.In OVS Listener implement the three life cycle methods  i)onQuery ii) applyResult and  iii) applyInputValues which are predefine.
    Regards,
    Mithu

  • How i can dissable/remove close buttons from popup window

    We have an web application so i want to dissable/remove the close button , so please help me as soon as possible.
    we are using only firefox for our web application and also for private use.
    Thank you.

    Just to be sure, you want to '''Remove''' the close button?
    I called the big guys for you.

  • Disabling the Close Button of JFrame or Frame

    Dear Friends,
    can anybody please help out to solve the problem i am having in disabling the close button of Jframe . Or try for hiding the close button from the screen
    thanks kalyan

    to disable the close button
    myFrame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE)

  • Two Qs: Retrieve time/date & projector remove "close" button

    Dear All,
    Two different questions with regards to lingo's abilities:
    1) How can I get through a script/lingo a server's date and
    time? I want not to rely on the PC's clock (the user can change it)
    but instead get the time/date remotely to make sure it is right. I
    am thinking of getting a string from a web page the same way as
    getting the IP address from (whatismyip.com) but I can't seem to
    find any web pages that have some kind of automators.
    2) Is it possible to remove the X, "close" button from a
    projector window so the user cannot close it? I have seen some
    xtras that can do that but they are not free and I am hoping there
    is an internal director way to do this?
    Thank you for all your help and ideas. You have been very
    helpful in my previous questions :)

    1) If you have a server, you can put a server side script up
    that
    returns the time quite easily. From Director, you would use
    getNetText() to pull it down
    2) If you click on the stage where there are no sprites,
    there will be,
    in the Property Inspector, a Display Template tab. There are
    your
    Titlebar options. Uncheck the ones you don't want to see
    (like for
    example "Close Box")

  • Need TitleWindow close button to just do its thing

    Hello everyone
    I have an editable datagrid in a TitleWindow with an enabled close button.
    If I activate the close button with a function, it does not allow me to edit the data grid (and performs its function). How can I just have the close button do its thing (but allowing me to edit my gata grid in the window? It performs the function  if I try to edit the datagrid. Its drivig me a little crazy. So I will take some asprins, and hope for some wise soul to help me
    This is the sample code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
            <![CDATA[
            import mx.collections.ArrayCollection;
            import mx.events.DataGridEvent;
            [Bindable]
            private var jan:Number = 200;
            private var feb:Number = 123;
            private var mar:Number = 67;
            private var apr:Number = 108;
            private var may:Number = 126;
            private var jun:Number = 199;
            private var jul:Number = 199;
            private var aug:Number = 199;
            private var sep:Number = 199;
            private var oct:Number = 199;
            private var nov:Number = 199;
            private var dec:Number = 199;
            private var dataset:ArrayCollection = new ArrayCollection( [
                { Month: "January", Data: jan },
                { Month: "Febuary", Data: feb },
                { Month: "March", Data: mar },
                { Month: "April", Data: apr },
                { Month: "May", Data: may },
                { Month: "June", Data: jun },
                { Month: "July", Data: jul },
                { Month: "August", Data: aug },
                { Month: "September", Data: sep },
                { Month: "October", Data: oct },
                { Month: "November", Data: nov },
                { Month: "December", Data: dec } ]);
            ]]>
        </mx:Script> 
        <mx:ViewStack id="viewstack1" width="464.46967" height="408.18182" horizontalCenter="-12" verticalCenter="0">
            <mx:Canvas id="Data" width="100%" height="100%">
                <mx:TitleWindow id="DataA" width="450" height="350" layout="absolute" title="Data" horizontalCenter="0" verticalCenter="-10" showCloseButton="true" >
                    <mx:DataGrid x="11" y="10" width="405.98486" height="290" dataProvider="{dataset}" editable="true">
                        <mx:columns>
                            <mx:DataGridColumn width="200" headerText="Month" dataField="Month" editable="false" sortable="false" />
                            <mx:DataGridColumn headerText="Data" dataField="Data" editable="true" sortable="false" />
                        </mx:columns>
                    </mx:DataGrid>
                </mx:TitleWindow>
                <mx:Button x="7" y="386" label="Graph" click="viewstack1.selectedChild=Graph;" />
            </mx:Canvas>
            <mx:Canvas id="Graph" width="100%" height="100%">
                <mx:TitleWindow  id="GraphA" width="450" height="350" layout="absolute" title="Graph" horizontalCenter="0" verticalCenter="-10" showCloseButton="true" click="viewstack1.selectedChild=Data;">
                    <mx:ColumnChart x="8" y="8" id="columnchart1" width="412.12122" height="290" dataProvider="{dataset}">
                <mx:horizontalAxis>
                    <mx:CategoryAxis categoryField="Month"/>
                </mx:horizontalAxis>
                        <mx:series>
                            <mx:ColumnSeries displayName="Series 1" xField="Month" yField="Data"/>
                        </mx:series>
                    </mx:ColumnChart>
                </mx:TitleWindow>
            </mx:Canvas>
        </mx:ViewStack>
    </mx:Application>

    It's still not really clear what you want to do here.  Do you mean you want to be able to click the close (X) button while editing a field in the datagrid, but have the field remain in edit mode?  I ran your example (minus charting components I don't have at home, snowed out of work and Flex Pro at the moment ) and it seems to behave "as I would expect", but maybe I just don't understand what your goal is.
    Also - if you're using the close (X) button for anything other than closing a dialog... I wouldn't recommend doing so from a UI design perspective.  Users will expect a 'close' button to behave as it does in other applications, to close the panel/dialog/window (not the change the view within a dialog).  If you intend on using it to back out of a sub-view I'd reconsider.  You may want to try a TabNavigator (lazy man's ViewStack but quite effective if it fits your application) instead of a ViewStack.

  • I downloaded the new Firefox but it constantly freezes, doing absolutely nothing, and I can't even close it from my Mac dock bar, I have to turn off my laptop using the power button as Firefox won't let me shut down. What can I do?

    Hi
    I recently downloaded the new Firefox (Firefox 4, I think - you can tell I'm very tech savvy!) and it constantly freezes, I can't do anything with it at all - I can't even close it from the icon in my Mac dock bar.
    I have tried restarting my computer - though I have to turn it off by using the power button as as Firefox is open and totally unresponsive it won't let me shut down. About a minute after re-starting Firefox, restoring my tabs or starting afresh, it freezes again.
    This is obviously very annoying and I'm not sure what I can do about it. Firefox is my preferred browser, and I'd really like to be able to use it again!

    This is not a reply. I just want to elaborate on this problem.
    My computer freezes occasionally when it is used after being sleep for a while. The spinning ball appears and everything is totally disabled. Nothing on the keyboard works.
    The mouse moves, but does not work.
    The only solution is to turn the power off and on (losing all data in open applications.)
    I kept the System monitor running on the side to find out which program was running when the computer froze. The Monitor as well as all other applications froze, but the data showed:
    Firefox 18.4%
    Activity Monitor 0.9%
    Firefox Plugin 0.2%
    This is all the information I have. By the way, I am using iMac with OS 10.6.

  • Alert messages from Notification Center hang after using close button

    After opening my MacBook in the morning, Notification Center displays the alerts from my Calender (I realy like this new feature!).
    Problem
    When I click the Close Button on an Alert Message the Alert Message does not close but stops responding and stays displayed.
    The only way to get rid of it is to logout and login to OSX.
    Does anyone have the same problem?
    I am looking for a solution.
    All suggestions are welcome!
    Thanks,
      Chris

    Hi,
    Uploaded with Skitch!
    As you can see the System Preferences > Notification Pane talks about "Alerts" in a general way first
    Then it offers options on how the Notifications are displayed.
    I was presuming you were talking about the Notifications in the same general way and I was asking which option you were using
    Since my first post in this thread I have changes my Mail Notifications to Alerts (It seems to be the one with more issue)
    It does hang around until I deal with it
    It then send me to Mail but the Incoming mail item(s) is(are) no longer marked  as unread.
    This makes it a little difficult to check the generic Inbox rthat has five Accounts set up.
    I am not getting a spinning beach Ball and the Alert Style Notification goes away.
    10:18 PM      Saturday; September 8, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Close Button for Web Dynpro in an iView launched from UWL

    Hi All, this sounds like such a simple thing but its really got me thinking.
    Have a web dynpro application launching form the UWL into an iView (using the IViewLauncher, I'm using this so I can change some visual effects of the application with the iView).  The application is the LeaveApprover application.
    Need a close button on the confirmation screen.  Have tried the following code called from a Close button:
         try {
              String url  = WDURLGenerator.getWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"closepage.html");
              TaskBinder.getCurrentTask().getClient().sendRedirect(url, 0);
         } catch (Exception e) {
              e.printStackTrace();
    The closepage >>
    function closeWindow()
    {var currWindow = window.top;
    currWindow.opener = window.top;
    currWindow.close();
    onload run the closeWindow function
    This is a test file to close the window....
    This works if I use the standard UWL launch but DOES NOT WORK with the iViewLauncher.
    Also tried creating an exit plug in the interface view and calling it from my close button, but no luck with either.
    Please help.  Thanks Brian
    Edited by: Brian Carter on Dec 8, 2009 11:54 AM
    Edited by: Brian Carter on Dec 8, 2009 11:55 AM
    Edited by: Brian Carter on Dec 8, 2009 11:58 AM
    Edited by: Brian Carter on Dec 8, 2009 11:59 AM
    Edited by: Brian Carter on Dec 8, 2009 11:59 AM

    Hi Brian,
    we had a similar problem in the past. We wanted to call a normal Button placed on the WebDynpro View and the close script was saved in the km content in portal.
    We solved it with an own project in NWDS including the html Files.
    Follow the link and you find our solution. Hope it helps.
    Re: Portal navigation problem

  • ResourceException: Access not allowed (when trying to grab a connection from weblogic pool)

    I am using WLS7 with SP1.
    I just recently migrated from WLS6.0. When my code tries to grab a
    connection from the pool, it throws an exception
    java.sql.SQLException: Pool connect failed:
    weblogic.common.ResourceException: Access not allowed
    at weblogic.jdbc.pool.Driver.connect(Driver.java:202)
    Does anyone know if anything changed from 6.0 to 7?
    Here is a piece of the code that throws exception.
    Driver driver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver")
    .newInstance();
    conn = driver.connect("jdbc:weblogic:pool:" +
    dbName, null);
    Thanks in advance.

    Hi Jung,
    "Jung Yang" <[email protected]> wrote in message
    news:[email protected]...
    Do you know how to change security setting on the connection pool?
    Thanks.WebConsole:
    1.Compatibility Security => ACLs
    Create a new ACL,
    name : weblogic.jdbc.connectionPool.yourPoolname
    permission : reserve, reset
    group : everynone
    2.Services => JDBC => Connection Pool
    Create a new Connection Pool
    ACL Name : weblogic.jdbc.connectionPool.yourPoolname
    In 'Target' tab, choose server and click the Apply button
    Slava
    >
    "Slava Imeshev" <[email protected]> wrote in message
    news:[email protected]...
    Hi Jung,
    Could you try providing weblogic user name and password
    in the properties?
    Could you also check security setting of the connection pool?
    Regards,
    Slava Imeshev
    "Jung Yang" <[email protected]> wrote in message
    news:[email protected]...
    Well that is exactly what I am doing. The variable dbName is database
    connection pool name that I created in weblogic console. Again, it
    worked
    in WLS6 but after migration, it stopped working.
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    In my code I am supplying name of the connection pool already
    created
    in
    weblogic server. I am asking you to get connection from the pool
    using
    pool
    driver.
    In your case you are trying to create connection straight to
    database
    using pool
    driver.
    What I am asking is pass name of the connection pool instead of
    database
    name.
    Thanks,
    Mitesh
    Jung Yang wrote:
    What would be the difference between your code and mine? Mine
    simple
    appends dbName string value for connection pool name at the end of
    "jdbc:weblogic:pool:"? And why same exact code would work in WLS6and
    not
    work in WLS7?
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    conn = driver.connect("jdbc:weblogic:pool:" +
    dbName, null);Instead of doing this what if you use
    Connection conn =
    myDriver.connect("jdbc:weblogic:pool:myConnectionPool", null);
    Will you please try this and see if that helps?
    Mitesh
    Jung Yang wrote:
    Isn't that exactly what I posted for my code piece?
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    Try As described below:
    The following example demonstrates how to use a database
    connection
    pool
    from a servlet.
    Load the pool driver and cast it to java.sql.Driver. The
    full
    pathname
    of
    the driver is weblogic.jdbc.pool.Driver. For example:
    Driver myDriver = (Driver)
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    Create a connection using the URL for the driver, plus
    (optionally)
    the
    name of the registered connection pool. The URL of the pool
    driver
    is
    jdbc:weblogic:pool.
    You can identify the pool in either of two ways:
    Specify the name of the connection pool in a
    java.util.Properties
    object
    using the key connectionPoolID. For example:
    Properties props = new
    Properties();props.put("connectionPoolID",
    "myConnectionPool");Connection conn =
    myDriver.connect("jdbc:weblogic:pool", props);
    Add the name of the pool to the end of the URL. In this case
    you
    do
    not
    need a Properties object unless you are setting a username
    and
    password
    for using a connection from the pool. For example:
    Connection conn =
    myDriver.connect("jdbc:weblogic:pool:myConnectionPool",
    null);
    Note that the Driver.connect() method is used in theseexamples
    instead of
    the DriverManger.getConnection() method. Although you may
    use
    DriverManger.getConnection() to obtain a databaseconnection,
    we
    recommend
    that you use Driver.connect() because this method is not
    synchronized
    and
    provides better performance.
    Note that the Connection returned by connect() is an
    instance
    of
    weblogic.jdbc.pool.Connection.
    Call the close() method on the Connection object when youfinish
    with
    your
    JDBC calls, so that the connection is properly returned to
    the
    pool. A
    good coding practice is to create the connection in a try
    block
    and
    then
    close the connection in a finally block, to make sure the
    connection
    is
    closed in all cases.
    conn.close();
    Mitesh
    Jung Yang wrote:
    I am using WLS7 with SP1.
    I just recently migrated from WLS6.0. When my code tries
    to
    grab a
    connection from the pool, it throws an exception
    java.sql.SQLException: Pool connect failed:
    weblogic.common.ResourceException: Access not allowed
    at
    weblogic.jdbc.pool.Driver.connect(Driver.java:202)
    Does anyone know if anything changed from 6.0 to 7?
    Here is a piece of the code that throws exception.
    Driver driver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver")
    .newInstance();
    conn =
    driver.connect("jdbc:weblogic:pool:"
    +
    dbName,
    null);
    >>>>>>>>>
    Thanks in advance.

  • How to suppress Save As dialog when using the Close button on an editable pdf

    Environment: Windows 7, SDK 9, Adobe Acrobat Pro X, Visual Studio 2010 Professional
    Summary: when a document is opened for editing using automation, edited, then closed using the "Close" button, the confirmation dialog appears, "yes" is selected and then the "Save As" dialog appears.  It should save without the "Save As" dialog in the same way it does were the document opened from Adobe Acrobat directly.  My question is, is there any flag to set which governs whether the "Save As" dialog appears as part of the close document process.  It is behaving as if the document is read-only upon close. (it isn't)
    This is how the document is opened from C++:
    if(SUCCEEDED(hr = ::CoCreateInstance(__uuidof(Adobe9::Acrobat::CAcroAVDoc), 0, CLSCTX_ALL, IID_IUnknown, (void**)&pUnk))){
    hr = OleRun(pUnk);
    if (SUCCEEDED(hr)){
    if (SUCCEEDED(hr = pUnk->QueryInterface(&pAVDoc))){
    hr = pAVDoc->Open((BSTR)CComBSTR(strPath), strDocName, &bRet);
    Even when the plugin is removed from the plug_ins\AcrobatSDK directory, the behaviour is the same.
    Another reproduction is running the BasicIacVC sample, commenting out all lines from gAcroPdDoc->Close(); in InitInstance() and returning TRUE.  If an editable document is opened using the sample, edited then closed using the "X" button, the confirmation dialog is followed by a "Save As" dialog as if it were a read-only document which it is not.
    Any suggestions would be appreciated.
    Regards,
    Evan

    Yes, it does.  (as long as the pdf has been opened via a COM interface)

  • When closing Firefox 29, it remains active as process even if there is any open windows. So I have to use close process from Application management.

    OS-Win 7 Home Edition
    When I close Firefox 29 (just installed) the firefox.exe *32 process remains active and I must close it from task manager.
    Otherwise when I try to run it again I get the message:
    "Firefox is already running but not responding. To open a new window you must first close ...."
    No such problem with previous version 28
    Regards
    Riccardo

    For those that have the problem after the update or after changing the ''seer'' preference please set Firefox to NOT delete history at closedown
    # Use new Button [[Image:New Fx Menu]] -> Preferences -> <br />|Privacy|Firefox will : [Remember History v]
    # Does that help and allow you to restart ok ?
    * Note
    *# You should be able to open and use Private Browsing Windows ok still. You may need to close those windows before closing down Firefox though. <br />See [[Private Browsing - Browse the web without saving information about the sites you visit]]
    *# This hang or close down issue is a known bug in Firefox 29 that has yet to be fixed. With luck it may be fixed in the next Firefox version. <br /> Note the known issues mentioned in <br /> http://www.mozilla.org/en-US/firefox/29.0.1/releasenotes/

  • Safari 5.1.2 Tab Close Button on Different Sides in Windows

    I'm not sure if this is unique to my computer(s), but I've noticed that the tab close button is on different sides in the Mac & Windows versions of Safari. On my Mac, the close button is on the Left-Hand side with the tab text centered on the tab. On my Windows, the close button is on the Right-hand side with the tab text justified to the left.
    Why the difference in UI? I do quite a bit of browsing on both computers and I find that I'm constantly having to try to remember where I am to determine where the stupid close button is.
    I've looked around in both the Mac & Windows versions and I can't find an option that specifies where the button is show and whether the text is justified or not.

    OK, here's what I'm talking about. This is a screen capture of a tab from the Macintosh version of Safari:
    Notice how the "X" to close the tab is on the left-hand side and the text of the tab is centered on the width of the tab.
    Here is a screenshot of the Windows version of Safari:
    You can see how the tab is much smaller for one, but also how the text is justified to the left with the "X" to close the tab appearing on the right side of the tab instead of the left.
    I don't really prefer one over the other (ie. left or right side), I just wondered if there's some setting to make them act the same way on both so that I don't have to constantly remember what OS I'm on in order to remember where the darn "X" is to close the tab.

  • Thanks For Your Support in advance i want to know that when I open a website that time view print option and when I click close button then page also new window page also close. I want to copy it how i can stop this print option?

    WHEN I OPEN A URL THAT TIME WITH PAGE OPEN SHOWS PRINT OPTION AND WHEN I CLICK CLOSE BUTTON OF PRINT OPTION THAT TIME NEW WINDOW BUTTON IS CLOSED. I WANT TO CLOSE ONLY PRINT OPTION. PLEASE HELP ME...............THANKS

    Many sites which offer specific "print formatted" pages do that: they assume that once you have finished with the print dialog you no longer want the page itself. So for your convenience they close it. Not so convenient for you, since you still want to view the page.
    I'm not aware of an easy solution for this. I can think of a couple different approaches.
    First, maybe there's an add-on to solve this? That would be easiest.
    Second, maybe there's a userscript to solve this?
    The Greasemonkey add-on runs userscripts which you can copy or download. Be careful to install only long-establish and trusted scripts. (''Is there a site that has this bad behavior that I can view without logging in? I will test one of my existing scripts to see whether it helps.'')
    Third, Firefox has an old system for restricting site permissions in a custom text file in your profile folder (named user.js). Editing this file is a bit advanced, and I haven't been able to test it, but the system works along these lines:
    <br>// Define a policy name for window.close permission
    // (assumes you don't have this pref already)
    user_pref("capability.policy.policynames", "nowindowclose");
    // Define policy: disable sites from using window.close
    // in their scripts
    user_pref("capability.policy.nowindowclose.Window.close", "noAccess");
    // List of sites subject to this policy
    user_pref("capability.policy.nowindowclose.sites", "firstbadsite.com secondbadsite.com");
    Again, I haven't tested that and recommend looking into add-ons first.

  • I have these black boxes surrounding things, e.g., there is a black box around the red "close" button on the upper left corner of this page.  There is also an oblong black box

    Hi - I'm not only having trouble waking up my MBP from sleep and having to restart repeatedly which is a pain in itself, but now when it restarted, I have these black boxes surrounding things, e.g., there is a black box around the red "close" button on the upper left corner of this page.  There is also an oblong resizable black box sitting on top of anything.  The content changes depending on the actions I take.  Right now it says, "You are currently on a close button.  To click this button, which closes the current window, press Control-Option-Space."  Right now I'm open in Firefox, but it doesn't matter if only Finder is open, it's still there.  I've tried closing all my applications and restarting and I also reset the PRAM.  It won't go away.  It's probably something simple, but I don't know how to get rid of it.  Any suggestions are welcome.
    Thanks,
    Janet

    Thanks so much.  I saw this on "desktop strangeness" immediately after I posted and tried to retract my question.  It worked perfectly.  I'm not sure how VoiceOver got turned on unless something happened when I was trying to wake up the computer.  I open the lid and it flashes whatever is open and then the screen goes black and I can't wake it up.  Still looking for the resolution to this.

Maybe you are looking for

  • How to Print the space in Top-of-Page in ALV output

    Hi gurus,      I had a problem in Printing the Spaces in Top-of-Page. My Requirement is like. Material no: (space with 18 char)  to   5235268 but it is coming like . Material no: to  5235268 i wrote the code like this. form Top_of_page. IF s_matnr IS

  • How can I print out a section of a pages document?

    I am helping my dad with his (massive) memoirs. He wants to send individual chapters to friends and erstwhile colleagues, by PDF and snail mail. The chapters are in individual sections. How can he share or print these - without having to specify page

  • POA won't load after Server Crash - 8209 file not found err

    Groupwise server crashed recently (apparently from bad RAID controller, which has been replaced). Server is back up an running now (SLES 10 sp3 VM running under XEN, GW 2012 sp1). Have performed a rebuild on Primary Domain and also on single Post Off

  • Table tab in EXIT_SAPLRSAP_002

    Hi all, In the table tab in the user exit EXIT_SAPLRSAP_002 there is a table defined i_t_data,but the type is not specified.Now if i want to enhance this exit. How can i use this table to fill values? Because this table only returns the data that can

  • Update more than 100 authorizations

    Hi gurus, i want to know if is possible to update more than 100 authorizations (in BI 7) at the same time. For example, i want to add the infosite "Zxxxxx" to all authorizations creates for the object "0COSTCENTER". Is possible to do this trough file