Hi Hans,

sorry, took me a long time. Anyway, looking through the code I saw that
if threading is enabled only minimal events are processed. Does this
solve the close window problem?

If not, there are some solutions in the net:

http://linuxsoftware.co.nz/blog/2008/08/12/handling-window-close-in-an-x11-app
https://www.linuxquestions.org/questions/programming-9/capturing-the-window-close-event-in-x-358162/

which could be tried.

Regards,
Werner

On Wed, 2008-12-24 at 06:41 +0100, hans.rijn...@shell.com wrote:
> Werner,
> 
> Sorry for not mentioning that.I am running on Linux using the "xwin" driver. 
> Any suggestion is appreciated.
> 
> Thanks,
> Hans
> 
> -----Original Message-----
> From: Werner Smekal [mailto:sme...@iap.tuwien.ac.at]
> Sent: Tuesday, December 23, 2008 8:54 PM
> To: Rijneke, Hans H SIEP-EPT-RIS
> Cc: plplot-general@lists.sourceforge.net
> Subject: Re: [Plplot-general] Closing the graphics window
> 
> 
> Hi,
> 
> which driver to you use, xwin? I'm not sure about the xwin driver, but 
> in wxWidgets is possible to veto a close event. So it should also be 
> possible to do the same for the xwin driver, but I think you have to 
> change the driver code.
> 
> If you tell me which driver you are using I could have a look in the 
> driver code and propose a patch.
> 
> Regards,
> Werner
> 
> hans.rijn...@shell.com wrote:
> > L.S.,
> >
> > Some of our users have the habit of closing the graphics window, which will 
> > lead to a crash if the next plot command comes.
> >
> > Is there a way of preventing users to close the graphics window ?
> >
> > Thanks in advance,
> > Hans Rijneke
> >
> >
> > ------------------------------------------------------------------------------
> > _______________________________________________
> > Plplot-general mailing list
> > Plplot-general@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/plplot-general
> >   
> 
> 
-- 
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: sme...@iap.tuwien.ac.at
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
       +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to