Alastair Reid wrote:
>
> Meurig again:
> > Why isn't there a Closed event in the Graphics library to let the
> > programmer know when a particular window has closed.
> > The code "send Quit" has been commented out in GraphicsWND.hs (in
> > the destroy function) so it looks like there might have been once.
> > Why not now?
> >
> Sorry, I've no idea why I left it out (or removed it).
> If you add it in and find that it works, send me some diffs, please.
>
> Alastair
Ok, there are just two changes needed.
They are in files GraphicsEvent.hs and GraphicsWND.hs
GraphicsEvent.hs
18d17
< | Closed
GraphicsWND.hs
235c235
< send Closed
---
> --send Quit
This appears to work for all the tests I've come up with.
Cheers
Meurig
--
Meurig Sage
Dept of Computing Science
University of Glasgow
http://www.dcs.gla.ac.uk/~meurig
mailto:[EMAIL PROTECTED]