Close button of the palette UI shooting onClose callback multiple times

Hello

When you do:

palette.onClose = function() { ... }


... and then clicking the close button (the small circle of OS UI in the upper left corner), in the UI of the pallet the onClose triggers recall at least 20 times.

Why? Is this a normal behavior?

Disabling the OS user interface when close button (using option closeButton: fake) and create a button instead:

palette.myCloseButton.onClick = function() { ... }


The onClick is triggered only once and the palette window is closed.

Everyone notices this difference? Is it me?

I'd love to not have a close to my palette button... I prefer to use the narrow circular button UI OS (but not if he's going to fire the recall several times in a row).

Thank you!!!

I did a simple test, and it does not seem to be fired only once on my computer Mac Yosemite.

#target illustrator-19
function test(){
  var w = new Window("palette", "Test");

  var lbl = w.add("statictext", undefined, "Test");

  w.onClose = function(){
  alert('closed.');
  };

  w.show();
};
test();

Tags: Illustrator

Similar Questions

  • Minimize / maximize / close buttons in the menu bar disappear often and rarely

    Half the time I start windows 7, I do not see the minimize/maximize/close buttons in the menu at the top of each window bar. When I restart, sometimes it comes back on in his place. But he continues to be very frequently.

    No one knows why this happens?

    http://social.technet.Microsoft.com/forums/en/category/w7itpro/

    Above is the link to the Windows 7 Forums.

    It is the best place to ask your questions of Windows 7.

    Here is the Vista Forums.

    See you soon. Mick Murphy - Microsoft partner

  • I am an old minimize, restore, close button in the new Firefox under XP

    I use XP sp2 and everything looks new except the minimize, restore and close.
    How can I solve it?

    These buttons on the title bar are controlled by Windows and no not by Firefox, so those keep the old look.

    It seems that you got the orange menu button Firefox on XP and have more bar menus visible.

    You get the orange Firefox menu button when the menu bar is hidden.

    You can press the F10 key or press the Alt key to display the menu bar hidden if necessary.

    See also:

  • I need to remove "minimize, maximize, close" buttons on the mode full screen

    I can remove all the buttons (like refresh, back, forward, address bar, etc.), but the small right 3 "minimize, maximize, close" buttons I can't delete, how can I do it with userChrome.css or another option.
    Because I can close firefox out of the full screen and clicking on the menu of archive with the ' Alt ' key.
    I don't want this small 3 buttons, I can hide and show permanent.

    I hope to explain correctly
    Thank you very much

    Add code to userChrome.css below default @namespace.

    ---

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    #autohide-context { display:none!important; } /* hide context menuitem "Exit Full Screen Mode" */
    #window-controls  { display:none!important; } /* hide window controls in full screen mode */
    
  • My minimize, maximize and close buttons at the top left are gone where?

    Last week my three buttons at the top of my screen has disappeared, where they go and how can I get back them.  Thank you!

    Hi Sharon _ warehouse.

    1. have you made changes on the computer recently?

    2. this happens with a particular application or with the set?

    3 are you referring to the options on the right side of the windows or on the left side?

    4. If these options are not available, then how you try to close open windows?

    If you have another check if the problem occurs in this account, or you can try to create a new user account and check:

    Create a user account

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

    Hope this information is useful.

  • DVD/CD player still works, but it won't open and close button on the PC! Any help out there?

    For some reason, a few months back, my Player DVD/CD writer decided it would not open or close more but it still works as usual when a disc is in, and it will be ejected when I go to the icon on the desktop, as well, but as there is no close button, it closes. I checked the disc and the info about it by going to 'start' and 'computer' and all that, and he says it works fine and the driver is fine, but is obviously not a reason any. It is an Atapi DVD A DH16AASH ATA device and it is a burner. I was going to download the so-called ErrorsFixer.com/Microsoft, but felt a little uncomfortable because I am always wary of download anything really. Someone at - it gives a few tips?

    Either said by the way, not at all important, how to change your password on your Microsoft account?

    The reader can be closed by pushing gently on the status bar. Once started, the tray retracts completely.

    If the player is behind a cover - the front hidden - it has probably moved slightly so that the external button is no longer comes into contact with the button on the front of the drive. If so, you must remove the covers on the side of the box and adjust the position of the car until the buttons respond and operate properly.
    If the button on the drive itself no longer works, you can either go as you are, or replace the disc. It is not economical to repair a DVD player.
  • Disable minimize or close button on the client to view

    Hello

    I hope this is the right forum for this question. I couldn't find the info I was looking for by searching online.

    Is it possible to disable the maximize/minimize/disconnect button in the top bar after that which appears after login to any computer virtual? I use VMWare View client 4.6. If you need more information, please let me know. Thank you

    If I'm not mistaken, I think what you want is - this setting:

    'Enable the shadow '.

    Determines whether the menu bar of shadow at the top of the View Client window is visible. This setting is enabled by default. NOTE the shadow menu bar is disabled by default for the kiosk mode.

  • Unloading of an external SWF that is loaded with a close button on the external SWF to unload

    I found a discussion on this topic, but I still have problems to work and was hoping to get some help here.

    Here, I have a file: http://www.dril-quip.com/test/main.swf

    I: main.swf (menu) and I module.swf (content)

    If you go to the wellhead systems/SS-15 BigBore II submarine and click on I have to load an external swf which covers most of the parent company.

    So far so good. My problem drains the loaded swf to 'Child' with the button provided on the loaded swf to 'Child'.

    Here is the code that I used to upload the file but I can't, for the life of me, find a way to unload.

    var bigboreLoader:Loader = new Loader();
    btnbb2.addEventListener (MouseEvent.MOUSE_UP, bigborecontent);

    function bigborecontent(event:MouseEvent):void {}
    var bigboreRequest:URLRequest = new URLRequest ("moduletemplate.swf");

    bigboreLoader.load (bigboreRequest);
    stage.addChild (bigboreLoader);

    I am sure that it requires the child to communicate with the parent somehow, but I'm at a loss. If I could get a bit of advice or a link to something to deal with this, it would be a great help. I just need to have my links loading my modules and remove it when the narrow buttong is struck on the loaded swf file. I promise you that I did some research and I confess that I found asnwers, but still they do not work. I found the code below:

    Main FLA:

    function removeF() {}

    removeChild (bigboreLoader);

    }

    var bigboreLoader:Loader = new Loader();
    btnbb2.addEventListener (MouseEvent.MOUSE_UP, bigborecontent);

    function bigborecontent(event:MouseEvent):void {}
    var bigboreRequest:URLRequest = new URLRequest ("moduletemplate.swf");

    bigboreLoader.load (bigboreRequest);
    stage.addChild (bigboreLoader);

    EXTERNAL FLA:

    btnClose2.addEventListener (MouseEvent.CLICK, bigborecontent);

    function bigborecontent(myevent:MouseEvent):void {}

    MovieClip (parent.parent) .removeF ();

    }

    I think I have a poor understanding of the code. Thanks for any help you might be able to provide.

    again, this code should all be on the same timeline as btnbb2. in main.fla.

    var bigboreLoader:Loader = new Loader();
    btnbb2.addEventListener (MouseEvent.MOUSE_UP, bigborecontent);


    function bigborecontent(event:MouseEvent):void {}
    var bigboreRequest:URLRequest = new URLRequest ("moduletemplate.swf");
    bigboreLoader.load (bigboreRequest);
    addChild (bigboreLoader);

    }

    function removeF() {}

    removeChild (bigboreLoader);

    }

    /////////////////////// end main.fla code ///////////////////////////////////////

    This code should all be on the main timeline in FLA EXTERNAL.

    and btnClose2 should be placed on the main timeline in your external fla. //

    btnClose2.addEventListener (MouseEvent.CLICK, bigborecontent);

    function bigborecontent(myevent:MouseEvent):void {}

    MovieClip (parent.parent) .removeF ();

    }

    end external fla code.

  • If I open show history, I can't close it. There are two gray arrows that do not work but no close button. With the help of el capitan for mac.

    I can't show all close the page of history. I used to be able to before the upgrade to el capitan. Now, there is no close button on the history page. It doesn't go away until I got close FF.

    Feel free to undo changes. You may need to quit Firefox first to release the files currently in use.

    In addition, you should be able to close the dialog box library using Cmd + w (close tab) or Cmd + Shift + w (close window). Or does any of these work for you?

  • How to restore the button 'Close tab' at the END of the tab bar?

    Until FF31, I used the following configured setting that installs the small 'X' button which tabs off the tabs themselves and on the far right of the bar closed tabs.

    browser.tabs.closeButtons; The user's game; Integer; 3

    No, this no longer works. It is always placed close buttons in the buttons on the tab. Until I can understand how to solve this problem, I'll be move back to a previous version. I can't for the life of see me why this feature has been removed, other than the apparently arrogant insistence of Mozilla that he knows what the people want better than them.

    You can watch these extensions.

    You can check the settings of the extension of the CTR through the Options/preferences button on the page "Firefox/tools > Modules > Extensions.

  • Customize the buttons in the graphic Palette

    Is it possible to customize the buttons in the graphic Palette in a XYGraph with LabVIEW 8.2.1?

    I am able to select and customize the cursor arrows (I imported both images customized for the State on or off, for example);

    but when I select in the same way, the graphic Palette, or one of its buttons, change--> to customize... Control is disabled

    I've already customized most other graphical parts, and the graphic Palette looks like now poor

    Thanks in advance

    Seems to work OK if you put the whole graph in customize mode and click the buttons on the palette to import your graphics. Try it!

  • Disable the close button in ChildBrowser

    I'm working on a project that deals with pages and external links.

    How can I disable the 'Close' button on the Webworks ChildBrowser and re-enable it after loading the page.

    Thank you for your response.

    Hello

    To confirm, you mean that sheet of 10 of BlackBerry that slides in to view content, correct? If so, the ChildBrowser is a component of system level and only provides access to its user interface.

  • How to disable the close button during execution

    Hello world.

    Please help me how to disable the close button at the top of the window during execution. I don't want the user to use this button to close. I used the button called out in this form but sometimes users of closing by clicking this button.

    I use the formula of Oracle 10 g R1.

    Thanks in advance,

    Or if you want to stop the closing by button close the main WINDOW. Then create a trigger on called KEY-OUTPUT at the FORM LEVEL and just write the value NULL ex.

    Trigger = KEY-EXIT (FORM-LEVEL)
    NULL;
    

    -Clément

  • Which equals browser.tab.close = 3 in the latest version?

    The last version supporting this feature was 30.0. I intend to continue to use that version until / unless I find it on the latest version supports. ([email protected])

    The pref browser.tabs.closeButtons support has been removed and will not return, so it is no longer possible to have a close button on the far right by assigning browser.tabs.closeButtons 3.

    You can watch this extension:

  • Minimize, maximize, and close buttons invisible randomly

    The three buttons at the top right go invisible at random times and stay that way. pressing f11 will show smaller versions, but does not resolve. have tried to reinstall. have you tried deleting and redevelop the profile. have tried to reset firefox.
    the buttons are still there because they work, but they cannot be seen. they come back sometimes for a little while before we go further once again, but I haven't found a model/cause for it yet.
    You can see when you use the default theme, but they are greyed out...?
    the buttons are invisible when firefox starts first to the top.

    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.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe

    You can try to disable hardware acceleration in Firefox.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    You will need to close and restart Firefox after enabling/disabling this setting.

    You can check if there is an update for your graphics display driver.

    You can try a Windows different theme is that it did not help.

Maybe you are looking for