Displaying 8 results from an estimated 8 matches for "end_mod".
Did you mean:
env_mod
2004 Aug 07
1
end_modal question
...p;Ok" , Wx::Point.new( 225 ,
> 75 ) ,
> Wx::Size.new( 60 , 25 ) );
>
> cancel_btn.evt_button( cancel_btn.get_id() ){ |e| exit(0); }
> ok_btn.evt_button( ok_btn.get_id() ){ |e|
> Game.updateOpponent( input_txt.get_value() );
> popup.end_modal( Wx::ID_OK ); }
>
> popup.show_modal();
> end
>
> Any idea''s why my end_modal quits the entire application? Thanks,
>
> Zach
>
>
>
>
>
>
>
>
> _______________________________________________
> wxruby-users mailing list...
2007 Apr 14
0
[963] branches/wxruby2/wxwidgets_282/doc/textile/dialog.txtl: Added a few missing methods and cleaned up a bit.
...;-will call Close() for the dialog.
</del><ins>+will call "close":window.html#Window_close for the dialog.
</ins><span class="cx">
</span><span class="cx">
</span><span class="cx"> h3(#Dialog_endmodal). Dialog#end_modal
</span><span class="cx">
</span><del>- *end_modal*(%(arg-type)Integer% retCode)
</del><ins>+ *end_modal*(%(arg-type)Integer% ret_code)
</ins><span class="cx">
</span><span class="cx"> Ends a modal dialog...
2004 Jun 19
4
FlexGridSizer question
...Cancel'',
Wx::Point.new(0,0),Wx::Size.new(70,25))
button.evt_button(Wx::ID_CANCEL){|event| onDoCancel()}
sizer.add(button, 0, Wx::SOUTH|Wx::EAST, 10)
self.set_sizer(sizer)
sizer.set_size_hints(self)
sizer.fit(self)
end
def onDoOK()
end_modal(Wx::ID_OK)
end
def onDoCancel()
end_modal(Wx::ID_CANCEL)
end
end
class MyApp < Wx::App
def on_init
frame = Wx::Frame.new(nil, -1, "Test",
Wx::Point.new(10, 100),
Wx::Size.new(170,100))
frame...
2009 Nov 28
1
'Are you sure?' custom dialog not exiting cleanly
...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 on_init
main_frame = Main_Frame.new()
set_top_window(main_frame)
set_exit_on_frame_delete(true)
main_frame.show
end
end
app = MyApp.new
app.main_loop
============= sample1.xrc ====================...
2004 Aug 06
12
0.4.0 Compiling Under Mingw
> I am compiling wxRuby 0.4.0 on WinXP Home under MingW and MSYS 1.0. I
can
> compile wxWindows and Ruby fine and I get about 20 minutes into the
wxRuby
> compile and it quits, It says:
[snip]
>
C:\mingw\bin\..\lib\gcc-lib\mingw32\3.2.3\..\..\..\..\mingw32\bin\ld.exe
:
> cannot find -lwxmsw241d
> make: *** [wxruby.so] Error 1
> I replaced the $LIBS in the extconf.rb file
2006 Dec 23
0
[796] trunk/wxruby2/samples/xrc/xrc_sample.rb: Simplify some method calls, rubyify and add a little more explanation
...sp   evt_button(Wx::xrcid(''wxID_OK'')) do
-                        end_modal(Wx::ID_OK)
</del><ins>+ evt_button( @ok.get_id ) { end_modal(Wx::ID_OK) }
+ evt_button( @cancel.get_id ) { end_modal(Wx::ID_CANCEL) }
+               &...
2007 Mar 29
0
[926] branches/wxruby2/wxwidgets_282: Update Dialog wx2.6 -> wx2.8 API, remove deprecations and cruft, update doc
...aratedbuttonsizer
</ins><span class="cx"> * "Dialog#create_std_dialog_button_sizer":#Dialog_createstddialogbuttonsizer
</span><span class="cx"> * "Dialog#do_ok":#Dialog_dook
</span><span class="cx"> * "Dialog#end_modal":#Dialog_endmodal
</span><span class="cx"> * "Dialog#get_affirmative_id":#Dialog_getaffirmativeid
</span><ins>+* "Dialog#get_escape_id":#Dialog_getescapeid
</ins><span class="cx"> * "Dialog#get_return_code"...
2007 Apr 14
0
[965] branches/wxruby2/wxwidgets_282/doc/textile: Misc.
...sp2007-04-14 07:09:13 UTC (rev 965)
</span><span class="lines">@@ -446,4 +446,5 @@
</span><span class="cx">
</span><span class="cx"> h4. See also
</span><span class="cx">
</span><del>-"Dialog::end_modal":dialog.html#Dialog_endmodal, "Dialog::get_return_code":dialog.html#Dialog_getreturncode, "Dialog::set_return_code":dialog.html#Dialog_setreturncode
</del><span class="cx">\ No newline at end of file
</span><ins>+"Dialog::end_modal&q...