feature request: optionally deleting the whole chain of event handlers, when window is deleted

Vadim Zeitlin vadim at wxwidgets.org
Mon Feb 4 02:33:18 PST 2008


On Mon, 4 Feb 2008 02:09:20 -0800 (PST) chris <cb at delta-h.de> wrote:

c> >  BTW, it's wxEVT_DESTROY, not wxEVT_CLOSE_WINDOW, which should be used.
c> 
c> Programming wx for about 5 years and never read about wxEVT_DESTROY.

 In an attempt to make you feel better I can say that it probably didn't
exist 5 years ago. It's a relatively recent addition, we added it a couple
of years ago maybe (svn annotate should allow you to find when exactly if
you're curious).

c> If I have heard about this before, all the discussion and many hours
c> of brain work weren't necessary.
c> Call me stupid, but where do I find anything about this event in the
c> manual?

 It's documented under wxWindowDestroyEvent class which is linked from the
classes by category page but not the alphabetical class list -- which might
explain why you didn't notice it. I'll add the link there too.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list