![]() ![]() ) with less effort than writing dialog boxes that themselves can be bypassed. Perhaps you should better clarify the flow process of this new feature in how it impacts your code.Īlso, to be somewhat further puzzled and perhaps blunt in reply, I imagine that IgorBeforeQuitHook was designed exactly for the reason that you can include function calls such as closeIt(. What test would you have to allow the return value to be anything else but 2. Otherwise, I don't see how your request accomplishes anything other than preventing Igor Pro from ever shutting down. Can you use the IgorBeforeQuitHook to put up a BIG FLASHING DIALOG DANGER BOX? Warn the user to run the other commands first before pressing the YES QUIT NOW button. I am going to presume that the "other commands" are outside of the Igor Pro application. ![]() It is true that it would pretty easy for almost any Igor user to find the function and disable it (unless it were invisible) but in any case, that effort will be always greater than close everything properly. Therefore, it is easier for us to check if everything is closed and otherwise impede the user to close Igor. Of course, this could be automated and implemented in IgorBeforeQuitHook but it requires an amount of time and effort that we don't have currently. However, certain commands need to be run before closing Igor to properly disconnect everything. Why would I want such a feature? In my laboratory, there is some equipment that is controlled with Igor. The easiest way to accomplish this, in my opinion, would be to add an extra return value to IgorBeforeQuitHook so that it aborts the quitting under, for instance, return value 2. If there is no possible solution, please, let me know so I publish this at the Igor Pro Wish List forum. I've also tried to abort these functions but it gets to the end of them, asking for quitting afterward. I've looked into IgorBeforeQuitHook, IgorQuitHook, and BeforeExperimentSaveHook with no positive results. ![]() I would like to abort Igor quitting under certain conditions. Wide-Angle Neutron Spin Echo Spectroscopy. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |