Avoid "close all windows" form

Hello guys,
I'm just working on an add-on where there is the need to create several user defined tables and user defined fields at the beginning.
During the creation, the B1-user gets the form "Database has been modified, close all windows" (no quote)
And if he presses "Yes" to close all windows this could cause errors in the add-on.
So my question is:
Is there any possibility to get this form only ones (right after I finished creating the tables)
Thanks in advance and
Best regards,
Mario

Hi Mario,
Take a look at the progressbar object. While a progressbar is active, a user can't interact with the GUI. I use this method also with my initialisations, works like a charm!
<b>Code (C#):</b>
/* Create a progressbar (10 steps, cancel button disabled) */
ProgressBar pbProgress = m_SBOApplication.StatusBar.CreateProgressBar("Creating user tables", 10, false);
pbProgress.Value = 1;
/* Create a user table and set the progressbar value */
pbProgress.Value = 4;
/* Create another user table and set the progressbar value */
pbProgress.Value = 8;
/* Stopping the progressbar */
pbProgress.Stop();
pbProgress = null; /* <-- IMPORTANT! */
Hope it helps,
Rowdy

Similar Messages

  • How do I open with one click all the windows that I have been minimized? When I right click on the lower bar Firefox icon, I only see the option to close all windows.

    It is used to be that I could right click on the Firefox icon on the toolbar at the bottom of the screen and I would then be given the option to open all windows. Now I only see the option to close all windows. The ability to open all windows is very useful. Have you eliminated this capability? It was a very helpful feature because I often have more than 15 windows minimized at one time. On a regular basis I like to open them all and keep only the ones that I still need. I know that it is possible to see the name of each window that is minimized by moving my cursor over the Firefox icon, but this does not provide enough information. So I have to open each window one at a time to look at it and then decide to close it or keep it - this is a frustrating, time-consuming process. Is there another way to open all the minimized windows at the same time, instead of one at a time?

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    You can retrieve the certificate and check details like who issued certificates and expiration dates of certificates.
    * Click the link at the bottom of the error page: "I Understand the Risks"
    Let Firefox retrieve the certificate: "Add Exception" -> "Get Certificate".
    * Click the "View..." button and inspect the certificate and check who is the issuer.
    You can see more Details like intermediate certificates that are used in the Details pane.

  • Once I close all windows and try to open another I get a message saying"Firefox is still running, you must close all browers before opening a new window. Why is this happening? I have the 3.5.10 Version

    I close all Firefox windows. When I try to open another window later I get a message telling me that Firefox is still running and that I need to close all windows or restart my computer. I have this about 3 times a day this past week but prior to that it was maybe every one or 2 weeks. I had the 3.5.10 Version of Firefox, but have just updated to see if this stops this from happening. But what do I do if it doesn't stop it?

    There are a few possible causes for that error, for details see [[Firefox is already running but is not responding]]

  • How can I close all windows in Preview?

    Hi all
    I can't seem to find a way to close all windows in Preview.
    Can somebody try this and see if they get the same result I do.
    1. Copy an image into the clipboard.
    2. Open Preview
    3. Hold down command-N for about 20 seconds.
    You should end up with dozens of windows with the image that you copied.
    Now, try to close them.
    I've unchecked 'Restore windows when quitting and re-openng apps' in System Preferences
    I've typed in the 'defaults write com.apple.Preview NSQuitAlwaysKeepsWindows' hack in the terminal window
    I've quit Preview with the 'option' button held down and 'Quit and Close All Windows' showing in the menu.
    No matter what I do, the windows keep coming back every time I start Preview.
    This 'force restore' feature of Lion is starting to get really annoying.

    If I hold down the option key and go to Preview->File the Close Window menu item changes to Close all
    I answered the OP's question but I see now that the question wasn't what he was really asking.

  • Cannot get "Quit and Close All Windows" to work

    Each time I open any application on my Mac, it automatically opens any other windows for that app that I had previously left open and unsaved (including ones I had temporarily opened to view a file, which remain titled "Untitled", etc.)....I've tried UN-checking in the General area of System Preferences "Restore windows when quitting and re-opening apps", but this does ABSOLUTELY NOTHING. I've ALSO tried holding the Option key down while choosing Quit in a given application such that the "Quit" command changes temporarily to "Quite and Close All Windows", but, again, when I re-open the application, it re-opens all the previously left open windows as well...
    I've found this behavior in programs such as Preview, Mail, Safari - the list goes on. What gives :-)? Thanks for any help!
    Sincerely.
    D.D. J.
    Mac Pro (early 2009), 32 gigs RAM running Lion 10.7.4

    Thansk for the quit reply! However, I'm afraid there are still problems:
    It the Resume feature.
    When choosing Restart, Sleep or Shutdown there is a checkbox you can uncheck to prevent the apps from launching.
    This is actually the only time my windows DO fully close, when I uncheck the re-open previous apps after doing a cold-restart of my entire Mac (not exactly practical when all I want to do is not have to manually close a zillion windows that have inexplicably re-opened upon re-opening a given application like Mail...
    Also in System Preferences > General there is a hard-to-find checkbox under "Number of recent items" you can turn off.
    Also, you can hold the shift key to disable resume on a one time basis.
    I've tried setting the "no. of recent items" all to 0, and this has no effect. I've also (as I mentioned before) DE-selecting "Restore windows when quitting and re-opening apps", which also has no effect (this is particularly perplexing, since this seems like the most logical way to enable what I'm seeking). I've similarly also tried option-Quitting from within the app to no avail...
    Again, you can accomplish this through Finder by going to ~/Library/Saved Application State and deleting the folder.
    I thought this would be the ultimate solution - just delete the entire "Saved Application State" folder, as you suggest. However, I tried this (temporarily changing it's name to "Saved Application StateOLD"), but when I closed Mail (with opened windows) and then re-opened it, not only did the windows still re-appear, but a NEW "Saved Application State" folder was created, saving presumably the new Resume data for seemingly this and any other apps that I still had open on my computer.
    If you want to turn it off on a per app basis, (TextEdit is by example, replace TextEdit with the name of the app)
    Launch Terminal and copy/paste this at the prompt...
    defaults write com.apple.TextEdit NSQuitAlwaysKeepsWindows -bool false
    Press return.
    To turn off Resume globally...
    chflags uchg ~/Library/"Saved Application State"
    Press return
    If you're CERTAIN the above won't mess up my computer :-) I guess I'll try this next, either App by App, or Globally. However, please confirm that you're saying that to delete Resume globally, I need to enter the chflags info (above), word-for-word, into Terminal?
    Thanks again -
    DDJ

  • Option-close-all-windows causes Finder crash in 10.7.x

    Ever since I installed Lion last year on another iMac, and now on my current iMac, whenever I hold down option and click the red close button on a Finder window to close all open windows, the Finder crashes. It doesn't happen every single time, but enough to really make me angry.
    Anyone have a solution for this?

    Absolutely it's a Finder bug. It's been going on since I installed Lion the day it was released last year. My current machine, as with any Mac I've ever owned, is always kept up-to-date and I'm not running any Finder enhancers.
    What I'd love is if you and other people interested in this thread would try it out for yourself and see what happens. Just have a few Finder windows open and option left-click on the red close button on any window. It doesn't happen all the time. In fact, it might only happen the first time after a restart or initial boot. I'm not sure.
    It won't bring your machine to a halt for more than a few seconds and the Finder automatically restarts.
    Thanks for responding.

  • JFrame close all windows and send to front

    2 JFrame questions:
    1. Is there a way to keep JFrames above all other windows? For example, if a frame was on the screen and Internet Explorer opened, the frame would stay on top of the Internet Explorer window and would still be on the screen.
    2. is there a command to close all JFrames? I have a loop that creates a new frame each time it runs. How can I say close all Boxes when the exit choice is selected?
    if (x = 1)
    JFrame frame = new JFrame ();
    Box.getContentPane ().add (new JLabel (new ImageIcon (Toolkit.getDefaultToolkit ().getImage ("Image1.gif")))); Box.setUndecorated (true);
    Box.pack (); //prepares the image
    Box.setLocation (NextPlace, 0);
    NextPlace = NextPlace + 17;
    Box.setVisible (true);
    }

    I figured it out:
    System.exit (0);
    anyway thanks for your help.
    what about the other question?
    does anyone know if there is a send to front command
    so that the JFrame is above all the other windows?System.exit(0); will close the program. But if you just want to close windows this won't work.
    Instead you can use this:
    int iterator;
         Frame[] frame = JFrame.getFrames();
              for(iterator = 0; iterator < frame.length; iterator++){
                        frame[iterator].dispose();
    This will get all windows and close them.
    Also you must add this: import java.awt.Frame;

  • Safari 4 closes all windows when I attempt to only close one..

    I just updated to Safari 4 and the new features seem to be working fine except that when I try to close one of a few browser windows Safari closes all the windows I have open. Does anyone know how to fix this?

    Hello girl:
    Welcome to Apple discussions.
    Are you using tabbed browsing?
    Are you closing the open window by clicking on the red button? If you are, what you describe is "normal."
    Barry

  • Close all windows when right click !

    Hi all,
    I'm using Mac OS 10.4.10 on the Mac Book Pro. When I right click on any windows, it automatic close all opened windows, and return to the desktop.
    How can I fix this problem ?
    Thanks

    It's probably a bad file in the "Contextual Menu Items" folder in your "Library" folder or the "Library" folder at the top level of the hard drive. Stuffit can do it. They have an update.

  • My iPad will close all windows/apps suddenly without warning!  Any ideas?

    My iPad will "shut off" without warning...very annoying!  Any idea why?  Thanks!

    Try closing all apps completely and then do a reset and see if that helps. To close all apps : from the home screen (i.e. not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close them, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    To reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    Turning off iCloud and multitasking gestures on the iPad has also been suggested by some people.

  • Multiple window - close one closes all windows

    FF 4.0
    Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0
    When opening several windows (via file/New window or by following a link and Open in new window=), when closing the last opened window, it closes fine, but the dialog asking if I want to close the main window (the one warning that there are several tabs opened) is displayed.
    in FF3, each window was independent from the others

    I don't understand what happened above, but ericn1, wasn't your problem that you tried to close one browser window using the red X, and ALL of them closed? How did any of the above help you solve your problem? jscher2000 gave you alternate methods of closing windows but said that closing a window with the red X "should" work. It doesn't work, because it is closing ALL your windows, not just the one you are clicking on. I am now having the same problem. with Firefox.
    Understand I do not have the problem with any other program. In other words, I can open multiple windows in Paint Shop Pro, IE, Notepad, etc. and close one with the red X and all others remain open. It ONLY happens when using the Firefox browser.
    The red X should close only the window that you are in when you click on it.
    NOW, before someone suggests tabs, I don't like them and don't use them. My choice. Before someone says my browser is out-of-date, (3.6.13) I am using it because it was the last version that worked reliably on my computers, both at home (Windows 7 Professional) and my office (Windows XP Professional).
    When I updated to the last Firefox browser, both computers started seizing up (nothing worked and had to reboot using power button) Removing that version of Firefox and going back to this version solved that problem. Fact remains, version has little to do with this problem. I've seen other posts around the net about this with different (newer) versions of Firefox.
    So . . . does anyone have a solution to this that doesn't involve using keystrokes or hot keys to close windows instead of the red X that should work properly?

  • Firefox closes all windows

    Ever since taking the latest update for Firefox, anytime I click on a link on a page that opens into a new window, if I try to "X" out that second window, it also closes the page I came from. If I manually open another window for whatever purpose, it seems to work fine. It's only when I get a new window from a link in the previous one. BOTH windows always shut down. Not tabs, but windows. It's very annoying if I wasn't done with the first page I was on. I even tried to minimize the second open window, then right clicking from my task bar to close it, but it will still also close the original window I was in when I clicked the link. This has happened on MANY websites I've visited from links.

    Hello LoriH, '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • How do i not use "quit and close all windows", I Just Want Them To quit

    I want to close an application without having to  option click and quit command? PArK

    Command-Q will quit any application.

  • Close all  open windows at same time

    Is there any way to close all open programs at once, rather than having to do them one at a time?

    I don't know of a way to close all open apps at the same time, but i do know of a way to close all open windows in a particular app at one time, ie: safari
    Hold down Option when you click on the red close button at the top of one of those windows, and it will close all windows *for that app*...but doing so doesn't necessarily quit the app.
    The only other thing i can think of you can do is hold down Command, Option, and Esc to get the Force Quit window to open, (or access it from the Apple menu at the top left corner) and then you can select one at a time all the apps and force quit them individually...it's still quicker than switching between each app individually..
    Message was edited by: tool
    Message was edited by: tool

  • How do you close all the windows on Preview?

    Hi, I'm running Mac OS 10.7.5 and I'm having trouble with preview. Every time I open a picture it opens in preview but there is no way to close it, I even tried the alt/options key at the bottom to no avail all it does is give me a force quit option. Can someone please help me?

    OS X keyboard shortcuts
    Summary
    Learn about common OS X keyboard shortcuts. A keyboard shortcut is a way to invoke a function in OS X by pressing a combination of keys on your keyboard.
    Products Affected
    Mac OS X 10.2, Mac OS X 10.3, Mac OS X 10.4, Mac OS X 10.5, Mac OS X 10.6, OS X Lion, OS X Mountain Lion
    To use a keyboard shortcut, or key combination, you press a modifier key with a character key. For example, pressing the Command key (the key that has a symbol) and the "c" key at the same time copies whatever is currently selected (text, graphics, and so forth) into the Clipboard. This is also known as the Command-C key combination (or keyboard shortcut).
    A modifier key is a part of many key combinations. A modifier key alters the way other keystrokes or mouse/trackpad clicks are interpreted by OS X. Modifier keys include: Command, Shift, Option, Control, Caps Lock, and the Fn key. If your keyboard has an Fn key, you may need to use it in some of the key combinations listed below. For example, if the keyboard shortcut is Control-F2, press Fn-Control-F2.
    Here are the modifier key symbols you may see in OS X menus:
    (Command key) - On some Apple keyboards, this key also has an Apple () logo
    (Control key)
    (Option key) - "Alt" may also appear on this key
    (Shift key)
    (Caps Lock) - Toggles Caps Lock on or off
    Fn (Function key)
    Startup shortcuts
    Press the key or key combination until the expected function occurs/appears (for example, hold Option during startup until Startup Manager appears, or Shift until "Safe Boot" appears). Tip: If a startup function doesn't work and you use a third-party keyboard, try again with an Apple keyboard.
    Key or key combination
    What it does
    Option
    Display all bootable volumes (Startup Manager)
    Shift
    Perform a Safe Boot (start up in Safe Mode)
    Left Shift
    Prevent automatic login
    C
    Start from bootable media (DVD, CD, USB thumb drive, and so forth)
    T
    Start in FireWire target disk mode
    N
    Start from NetBoot server
    X
    Force Mac OS X startup (if non-Mac OS X startup volumes are present)
    D
    Use Apple Hardware Test
    Command-R
    Use Recovery (OS X Lion or later)
    Command-V
    Start in Verbose Mode
    Command-S
    Start in Single User Mode
    Command-Option-P-R
    Reset NVRAM / parameter RAM
    Hold down the Media Eject (⏏) key or F12 key, or mouse or trackpad button
    Eject removable discs
    See also: Startup key combinations for Intel-based Macs.
    Sleep and shut down shortcuts
    Key or key combination
    What it does
    Power button
    Turn off your Mac or put it to sleep
    Hold down the power button
    Force your Mac to shut down
    Command-Control-power button
    Force your Mac to restart
    Control-Media Eject (⏏)
    Show restart/sleep/shutdown dialog
    Command-Option-Media Eject (⏏)
    Put the computer to sleep
    Command-Control-Media Eject (⏏)
    Quit all applications (after giving you a chance to save changes to open documents), then restart the computer
    Command-Option-Control-Media Eject (⏏)
    Quit all applications (after giving you a chance to save changes to open documents), then shut down the computer
    Shift-Control-Media Eject (⏏)
    Put all displays to sleep
    Finder keyboard shortcuts
    Key combination
    What it does
    Command-A
    Select all items in the front Finder window (or desktop if no window is open)
    Command-Option-A
    Deselect all items
    Command-Shift-A
    Open the Applications folder
    Command-C
    Copy selected item/text to the Clipboard
    Command-Shift-C
    Open the Computer window
    Command-D
    Duplicate selected item
    Command-Shift-D
    Open desktop folder
    Command-E
    Eject
    Command-F
    Find any matching Spotlight attribute
    Command-Shift-F
    Find Spotlight file name matches
    Command-Option-F
    Navigate to the search field in an already-open Spotlight window
    Command-Shift-G
    Go to Folder
    Command-Shift-H
    Open the Home folder of the currently logged-in user account
    Command-I
    Get Info
    Command-Option-I
    Show Inspector
    Command-Control-I
    Get Summary Info
    Command-Shift-I
    Open iDisk
    Command-J
    Show View Options
    Command-K
    Connect to Server
    Command-Shift-K
    Open Network window
    Command-L
    Make alias of the selected item
    Command-M
    Minimize window
    Command-Option-M
    Minimize all windows
    Command-N
    New Finder window
    Command-Shift-N
    New folder
    Command-Option-N
    New Smart Folder
    Command-O
    Open selected item
    Command-Shift-Q
    Log Out
    Command-Shift-Option-Q
    Log Out immediately
    Command-R
    Show original (of alias)
    Command-T
    Add to Sidebar
    Command-Shift-T
    Add to Favorites
    Command-Option-T
    Hide Toolbar / Show Toolbar in Finder windows
    Command-Shift-U
    Open Utilities folder
    Command-V
    Paste
    Command-W
    Close window
    Command-Option-W
    Close all windows
    Command-X
    Cut
    Command-Option-Y
    Slideshow (Mac OS X v10.5 or later)
    Command-Z
    Undo / Redo
    Command-1
    View as Icon
    Command-2
    View as List
    Command-3

Maybe you are looking for

  • Error message in SDS report shipping processing

    Hello everybody, we are running a SAP ECC 6.00 system with EA-APPL 15. We are using the standard SDS shipping process of inbound documents triggered by delivery. Everything worked fine, but all of a sudden each SD_CALL gets an error message in CVD1 i

  • Creating Custom Mobile Application with CRM

    Hi , After reading some staff about the CRM Mobile client solutions , I have not figure it out weather I can create my own mobile applications  using the CRM Mobile Technology . I know that the mobile clients need CRM Middleware server for synchoniza

  • 1st generation Time capsule??

    Hi, I have searched every where but i cant find any answers and I hope you can help me:). Does 1st generation Time Capsule have wireless connection? Can you stream Music, Movies ect to your Ipad 3?And does it work to connect Ipad 3 to Time capsule? C

  • Why is my wifi so slow on my Airport Time Capsule

    I just got am Airport Time Capsule 2TB for my 2100sq ft house. The Time Capsule sits in the middle of the house, and my iPhone, iPad and MacBook all have "Excellent" Connection according to my AirPort Utility. However, my AppleTV is only getting "Goo

  • When I sort a column of figures, it sorts by the first digit. How do I get it to sort by the whole number?

    I have a column of numbers, Specifically: 5.2, 42.0, 25.5, 2.4, 11.8, 0.9, 0.5. Notice how it has sorted by the first digit, not the whole number. In other words 5.2 is ranked higher than 42, because 5 is larger than 4. What do I turn on or off to ma