search for: get_dialog

Displaying 2 results from an estimated 2 matches for "get_dialog".

2005 Aug 12
5
Functions that return objects...
I was investigating why the find dialog causes an error when you close it. It seems that wxRuby2 is returning a new ruby object when you call Event.get_dialog. This causes some big problems when you''re expecting you''re going to get back the same ruby pointer that you put in. In a brief check over the source I don''t see anything that preserves the original ruby object pointer or any way to tie a CPP object back to a ruby o...
2006 Nov 13
7
[736] trunk/wxruby2/samples/dialogs/dialogs.rb: Fixed crashing bug in on_paint and made the code style more Ruby like.
...DecodeFindDialogEventFlags(event.get_flags())) </del><ins>+ decode_find_dialog_event_flags(event.get_flags())) </ins><span class="cx"> elsif type == EVT_COMMAND_FIND_CLOSE </span><span class="cx"> dlg = event.get_dialog() </span><del>- if dlg == @m_dlgFind </del><ins>+ if dlg == @dlg_find </ins><span class="cx"> txt = "Find" </span><del>- idMenu = DIALOGS_FIND - @m_dlgFind = nil - elsif dlg == @m_dlgReplace &lt...