Displaying 3 results from an estimated 3 matches for "main_fram".
Did you mean:
main_frame
2009 Nov 28
1
'Are you sure?' custom dialog not exiting cleanly
.... Thank you.
-Philip
=========== asample1.rb ====================================================
require ''wx''
require ''sample1.rb''
class DIA_Frame < DiaFrame
def on_init
set_affirmative_id(Wx::ID_YES)
set_escape_id(Wx::ID_NO)
end
end
class Main_Frame < MainFrame
def on_init
evt_close { confirm_closure }
evt_button(@m_butexit) {self.close}
end
def confirm_closure
dlg = DIA_Frame.new
if(dlg.show_modal==Wx::ID_YES) then
dlg.end_modal(Wx::ID_YES)
self.destroy
end
end
end
class MyApp < Wx::App
def...
2009 Jun 04
0
Wx::AuiNotebook.delete_page Segmentation fault
Hi,
I got the following error several times (while working most of time), I
couldn''t create repeatable test case.
main_frame.rb:1765: [BUG] Segmentation fault ruby 1.8.6 (2008-03-03)
[i386-mswin32]
line 1765: @notebook_content.delete_page(0) if @notebook_content
Env: Ruby 1.8.6 p114, wxRuby 2.0 msin32 on Windows XP
Zhimin
--
Posted via http://www.ruby-forum.com/.
2007 Apr 13
0
[962] branches/wxruby2/wxwidgets_282/doc/textile/xmlresource.txtl: Fixed the documentation for load_*_subclass, where * is [Dialog, Panel, Frame].
...x">
</span><span class="cx">
</span><del>- MyDialog dlg;
- TheXmlResource->LoadDialog(&dlg, mainFrame, "my_dialog");
- dlg->ShowModal();
</del><ins>+ dlg = MyDialog.new
+ the_xml_resource.load_dialog_subclass(dlg, main_frame, "my_dialog")
+ dlg.show_modal
</ins><span class="cx">
</span><span class="cx">
</span><span class="cx">
</span><span class="cx"> h3(#XmlResource_loadframe). XmlResource#load_frame
</span>...