search for: mydialog

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

2004 Jun 19
4
FlexGridSizer question
...lose to the left edge of the dialog or come very close to the Text Controls on the right. Any suggestions ? TIA, -- shanko =end require ''wxruby'' ROMAN_10B = Wx::Font.new(10, Wx::ROMAN, Wx::NORMAL, Wx::BOLD) ROMAN_12 = Wx::Font.new(12, Wx::ROMAN, Wx::NORMAL, Wx::NORMAL) class MyDialog < Wx::Dialog def initialize(parent) super( parent, -1, ''FlexGridSizer'') sizer = Wx::FlexGridSizer.new(4,2,0,5) week = Wx::StaticText.new(self, -1, ''Week'') week.set_font(ROMAN_10B) sizer.add(week,0, Wx::ALIGN_CENTRE_VERTICAL|Wx::ALIGN...
2007 Apr 13
0
[962] branches/wxruby2/wxwidgets_282/doc/textile/xmlresource.txtl: Fixed the documentation for load_*_subclass, where * is [Dialog, Panel, Frame].
...of an already existing instance (the main reason </span><span class="lines">@@ -187,19 +192,25 @@ </span><span class="cx"> Example: </span><span class="cx"> </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"&g...