search for: on_print

Displaying 4 results from an estimated 4 matches for "on_print".

Did you mean: on_paint
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 -
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...bar = Wx::MenuBar.new() + menu_bar.append(menu_file, "&File") + menu_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", "",...
2006 Oct 17
0
[680] trunk/wxruby2/samples/printing/printing.rb: Cleaned up to use the Ruby naming convention, added #! line, now uses Wx default ID''s in standard menu items.
...t;<span class="cx"> points << Wx::Point.new(0,0) </span><span class="lines">@@ -126,9 +128,9 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def on_print(event) </span><del>- printDialogData = Wx::PrintDialogData.new(Wx::get_app.print_data) </del><ins>+ print_dialog_data = Wx::PrintDialogData.new(Wx::get_app.print_data) </ins><span class="cx"> </span><del>- printer = Wx::Printer.new...
2007 May 21
13
First drop of new memory management
Hi Just a quick update on memory leaks etc. I''ve just dropped a bunch of patches with a new approach to linking ruby''s GC to Wx''s memory handling. Still some work to do - eg bigdemo.rb falls over quite quickly - but working well for me on other samples. Briefly, it disposes of fixdeleting. For almost all objects that aren''t Windows, they should now be