search for: on_quit

Displaying 12 results from an estimated 12 matches for "on_quit".

Did you mean: on_init
2006 Apr 27
5
Major Breakthrough?
Attached are patches to make the textctrl.rb sample work fully. Note the new %directorargout typemap I added to fix wxWindows calling into SWIG. I don''t know if this can fix all such problems or not. Let me know what you think. I also rubified the sample a little bit more. Also, note that I fix the << operator so the function can be called. I hope I did this right. Roy
2007 Nov 18
2
Issues adding sub-menu items
..._help, "&Help") # Assign the menubar to this frame self.menu_bar = menu_bar # Create a status bar create_status_bar(2) self.status_text = "Welcome to HL7Query!" # Set it up to handle menu events using the relevant methods evt_menu Wx::ID_EXIT, :on_quit evt_menu Wx::ID_ABOUT, :on_about end def on_quit close() end .... .... .... Wx::App.run do self.app_name = ''HL7Query'' frame = HL7Query.new(":::HL7Query:::") frame.show end -- Posted via http://www.ruby-forum.com/.
2006 Nov 13
0
[732] trunk/wxruby2/samples: Fixed a few crashes related to the about box menu.
...e Wizard has completed'') </span><span class="cx"> </span><span class="cx"> </span><del>- evt_menu(Wx::ID_EXIT) { onQuit } - evt_menu(Wx::ID_ABOUT) { onAbout } </del><ins>+ evt_menu(Wx::ID_EXIT) { on_quit } + evt_menu(Wx::ID_ABOUT) { on_about } </ins><span class="cx"> w = Wx::Wizard.new(self, -1, ''The WxRuby Wizard'') </span><span class="cx"> p1 = Wx::WizardPageSimple.new(w) </span><span class="cx"...
2006 Jul 24
6
MiniFrame.i
Hi Another little patch, adding MiniFrame (a frame with small title bar and buttons which doesn''t appear in the desktop taskbar). Also a sample - not very interesting, happy to roll this into something else if that''s better. cheers alex _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
2007 May 31
0
[1041] trunk/wxruby2/samples/calendar/calendar.rb: Remove deprecated call to set_best_fitting_size
...gt;<span class="cx"> @panel.set_sizer(@sizer) </span><del>- set_best_fitting_size </del><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def on_quit </span></span></pre> </div> </div> </body> </html>
2006 Nov 13
0
[731] trunk/wxruby2/samples/etc/sash.rb: Changed menu events so they call the correct method.
...<span class="cx"> set_status_text("wxRuby Sash sample") </span><span class="cx"> </span><del>- evt_menu(Wx::ID_EXIT) { onQuit } - evt_menu(Wx::ID_ABOUT) { onAbout } </del><ins>+ evt_menu(Wx::ID_EXIT) { on_quit } + evt_menu(Wx::ID_ABOUT) { on_about } </ins><span class="cx"> </span><span class="cx"> # Start creating the sashes - these are created from outermost </span><span class="cx"> # inwards. </span>&lt...
2006 Oct 19
0
[691] trunk/wxruby2/samples/calendar/calendar.rb: Placed controls within a panel so they appear on the correct themed background
...lt;del>- set_sizer(@sizer) </del><ins>+ @panel.set_sizer(@sizer) + set_best_fitting_size </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def on_quit </span><span class="lines">@@ -227,17 +226,15 @@ </span><span class="cx"> style = @calendar.get_window_style_flag </span><span class="cx"> date = @calendar.date </span><span class="cx">...
2007 Apr 13
0
[953] branches/wxruby2/wxwidgets_282: Additions to HelpController API 2.6 -> 2.8
...gt;<span class="cx"> * "HelpController#keyword_search":#HelpController_keywordsearch </span><span class="cx"> * "HelpController#load_file":#HelpController_loadfile </span><span class="cx"> * "HelpController#on_quit":#HelpController_onquit </span><span class="cx"> * "HelpController#set_frame_parameters":#HelpController_setframeparameters </span><ins>+* "HelpController#set_parent_window":#HelpController_setparentwindow </ins><span c...
2006 Nov 06
3
HtmlWindow and friends
Hi Attached is a patch to add HtmlWindow and some of its friends, including HtmlEasyPrinting. Also a sample. I haven''t tried exposing the parsing and rendering API yet to allow custom tags etc - I just wanted to get basic HTML and the 0.6.0 compatibility classes first. There may well be some quite easy classes left. There''s one ugly kludge to get OnOpeningURL to compile -
2007 Sep 27
10
Adding more sugar to wxSugar
...gram") menu_bar = Wx::MenuBar.new() menu_bar.append(menu_file, "&File") menu_bar.append(menu_help, "&Help") set_menu_bar(menu_bar) create_status_bar(2) set_status_text("Welcome to wxRuby!") evt_menu Wx::ID_EXIT, :on_quit evt_menu Wx::ID_ABOUT, :on_about end frame.show end I find it very readable and less tedious to write (see the attached source files). What do you think about it ? This is only a proof of concept and I also intend to add support for XRC initialization for CandyDialog and CandyFrame....
2007 Mar 20
0
[903] branches/wxruby2/wxwidgets_282/samples: Added #!/usr/bin/env ruby to the grid sample.
...sp&nbsp&nbsp&nbsp2007-03-20 00:03:40 UTC (rev 903) </span><span class="lines">@@ -55,7 +55,7 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def on_quit </span><del>- close(Wx::TRUE) </del><ins>+ close(true) </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def on_about </span><span class=...
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...enu_bar.append(menu_help, "&Help") + # Assign the menus to this frame + set_menu_bar(menu_bar) + # handle menu events + evt_menu(Wx::ID_OPEN) { on_open_file } + evt_menu(Wx::ID_PRINT) { on_print } + evt_menu(Wx::ID_PREVIEW) { on_preview } + evt_menu(Wx::ID_EXIT) { on_quit } + evt_menu(Wx::ID_ABOUT) { on_about } + end + + # end the application + def on_quit + close + end + + def on_open_file + f_dlg = Wx::FileDialog.new(self, "Open an HTML file", "", "", + "HTML files (*.html;*.htm)|.htm...