search for: set_affirmative_id

Displaying 3 results from an estimated 3 matches for "set_affirmative_id".

2007 Apr 14
0
[963] branches/wxruby2/wxwidgets_282/doc/textile/dialog.txtl: Added a few missing methods and cleaned up a bit.
...8 UTC (rev 962) +++ branches/wxruby2/wxwidgets_282/doc/textile/dialog.txtl&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-04-14 06:17:38 UTC (rev 963) </span><span class="lines">@@ -30,7 +30,7 @@ </span><span class="cx"> "set_affirmative_id":#Dialog_setaffirmativeid and </span><span class="cx"> "set_escape_id":#Dialog_setescapeid. </span><span class="cx"> </span><del>-Also notice that the "create_button_sizer()":#Dialog_createbuttonsizer() </del>&...
2007 Mar 29
0
[926] branches/wxruby2/wxwidgets_282: Update Dialog wx2.6 -> wx2.8 API, remove deprecations and cruft, update doc
...e +discarding them (such button, if present, is automatically activated if +the user presses the @"Esc"@ key). By default, buttons with the standard +@ID_OK@ and @ID_CANCEL@ identifiers behave as expected. It is also +possible to use a button with a different identifier nstead, see +"set_affirmative_id":#Dialog_setaffirmativeid and +"set_escape_id":#Dialog_setescapeid. + +Also notice that the "create_button_sizer()":#Dialog_createbuttonsizer() +should be used to create the buttons appropriate for the current platform and +positioned correctly (including their order which...
2009 Nov 28
1
'Are you sure?' custom dialog not exiting cleanly
...wxsugar (xrcise) to try out this mini program if you wish to create sample1.rb . 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)...