Print Thread
suppress save dialog...
#36531 11/17/09 02:18 PM
Joined: Feb 2003
Posts: 392
The Netherlands
patch Offline OP
Member
OP Offline
Member
Joined: Feb 2003
Posts: 392
The Netherlands
I am currently working on a plugin that copies all the code from separate tabs into a single command window. When I close this window I am (correctly) presented with a save dialog. Is there any way to suppress this?
Thanks in advance,
Patrick Barel

Re: suppress save dialog...
patch #36532 11/17/09 03:00 PM
Joined: Sep 1999
Posts: 212
Warszawa,Poland
J
Member
Offline
Member
J
Joined: Sep 1999
Posts: 212
Warszawa,Poland
You can use OnWindowClose and return 2.

This function allows you to take some action before a window is closed. You can
influence the closing of the window with the following return values:
0 = Default behavior
1 = Ask the user for confirmation (like the contents was changed)
2 = Don


Joachim Rupik

Browser Extender & Plot Window Team
Emberiza Software s.c.
---------------------------------------------------------
Browser Extender home: http://www.browserextender.com
Re: suppress save dialog...
Joachim Rupik #36534 11/18/09 06:06 AM
Joined: Feb 2003
Posts: 392
The Netherlands
patch Offline OP
Member
OP Offline
Member
Joined: Feb 2003
Posts: 392
The Netherlands
Had that function added, but I forgot to export it :-(.
Now this is closing the window too fast, before it's done compiling. Maybe just have the user close the window after compile.

Re: suppress save dialog...
patch #36535 11/18/09 09:37 AM
Joined: Sep 1999
Posts: 212
Warszawa,Poland
J
Member
Offline
Member
J
Joined: Sep 1999
Posts: 212
Warszawa,Poland
You can check if window is executing (IDE_IsWindowRunning)and wait.


Joachim Rupik

Browser Extender & Plot Window Team
Emberiza Software s.c.
---------------------------------------------------------
Browser Extender home: http://www.browserextender.com
Re: suppress save dialog...
Joachim Rupik #36536 11/18/09 10:36 AM
Joined: Feb 2003
Posts: 392
The Netherlands
patch Offline OP
Member
OP Offline
Member
Joined: Feb 2003
Posts: 392
The Netherlands
Tried that already, doesn't seem to work either :-(.
My code is just too fast ;-)


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.031s Queries: 14 (0.011s) Memory: 2.5189 MB (Peak: 3.0446 MB) Data Comp: Off Server Time: 2024-05-19 01:01:11 UTC
Valid HTML 5 and Valid CSS