search for: wxwindowdestroyev

Displaying 6 results from an estimated 6 matches for "wxwindowdestroyev".

2006 Nov 07
0
[723] trunk/wxruby2: Added WindowCreateEvent and WindowDestroyEvent + event handlers (AF)
...ot;>trunk/wxruby2/swig/classes/WindowDestroyEvent.i</a></li> <li><a href="#trunkwxruby2swigclassesincludewxWindowCreateEventh">trunk/wxruby2/swig/classes/include/wxWindowCreateEvent.h</a></li> <li><a href="#trunkwxruby2swigclassesincludewxWindowDestroyEventh">trunk/wxruby2/swig/classes/include/wxWindowDestroyEvent.h</a></li> </ul> </div> <div id="patch"> <h3>Diff</h3> <a id="trunkwxruby2doctextilewindowcreateeventtxtl"></a> <div class="modfile"><h4...
2007 May 21
13
First drop of new memory management
.... So this should address memory leaks eg with Wx::Bitmap. Windows are a bit different, as they may not be referenced by any ruby variable, but still very much alive displayed on the screen. The instance of Wx::App now listens for all notifications of windows being destroyed from WxWidgets (via wxWindowDestroyEvent). In ruby''s GC mark phase, all known SWIG objects are checked, and if they point to a Window that hasn''t yet been destroyed, they are marked to prevent them being destroyed. Anyway, apologies if you find things a bit shaky for a little while - shout with other samples you...
2006 Dec 24
0
[802] trunk/wxruby2/swig/classes: Add support for MenuEvent (MENU_OPEN, MENU_CLOSE, MENU_HIGHLIGHT)
...;/span><span class="lines">@@ -64,6 +64,7 @@ </span><span class="cx"> extern swig_class cWxActivateEvent; </span><span class="cx"> extern swig_class cWxWindowCreateEvent; </span><span class="cx"> extern swig_class cWxWindowDestroyEvent; </span><ins>+extern swig_class cWxMenuEvent; </ins><span class="cx"> #ifdef WXSCINTILLA </span><span class="cx"> extern swig_class cWxScintillaEvent; </span><span class="cx"> #endif </span><span class="l...
2007 May 21
0
[1022] trunk/wxruby2/swig/classes/App.i: Memory mgmt: use Wx::App to mark still-alive Windows, set up Wx::THE_APP const
...;<span class="cx"> } </span><span class="cx"> </span><ins>+ // special event handler for destruction of windows which is done + // automatically by wxWidgets. Tag the object as having been destroyed + // by WxWidgets. + void OnWindowDestroy(wxWindowDestroyEvent &event) + { +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxObject* wx_obj = event.GetEventObject(); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// Would be neater - but can''t do it this way b/c of destruction sequence +&...
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
...class="cx"> </span><span class="cx"> // Pre-fetched id because it''s called very frequently in wxRubyApp::FilterEvent </span><span class="lines">@@ -62,11 +63,7 @@ </span><span class="cx"> void OnWindowDestroy(wxWindowDestroyEvent &event) </span><span class="cx"> { </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspwxObject* wx_obj = event.GetEventObject(); </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp...
2007 May 31
0
[1042] trunk/wxruby2: Overhaul of the event handling WxType->RubyClass mapping to make it
...rn swig_class cWxScrollEvent; -extern swig_class cWxScrollWinEvent; -extern swig_class cWxMoveEvent; -extern swig_class cWxListEvent; -extern swig_class cWxWizardEvent; -extern swig_class cWxSashEvent; -extern swig_class cWxActivateEvent; -extern swig_class cWxWindowCreateEvent; -extern swig_class cWxWindowDestroyEvent; -extern swig_class cWxMenuEvent; -extern swig_class cWxContextMenuEvent; -extern swig_class cWxAuiManagerEvent; -extern swig_class cWxAuiNotebookEvent; -#ifdef WXSCINTILLA -extern swig_class cWxScintillaEvent; -#endif </del><span class="cx"> </span><del>-stati...