search for: on_link_clicked

Displaying 6 results from an estimated 6 matches for "on_link_clicked".

2005 May 03
4
Wx::HtmlWindow.on_link_clicked
...39;'Win32API'' require ''wxruby'' class WrappedHtml < Wx::HtmlWindow def initialize(*args) super @shell = Win32API.new(''shell32'', ''ShellExecute'', ''LPPPPI'', ''L'') end def on_link_clicked(link) @shell.call 0, ''open'', link.get_href, nil, nil, 1 end end class App < Wx::App def on_init dialog = Wx::Dialog.new nil, -1, ''About'' sizer = Wx::BoxSizer.new Wx::VERTICAL dialog.set_sizer sizer html = Wrapped...
2007 Feb 12
0
[866] trunk/wxruby2/doc/textile/htmlwindow.txtl: Added missing methods section
...lWindow_historyforward +* "HtmlWindow#load_file":#HtmlWindow_loadfile +* "HtmlWindow#load_page":#HtmlWindow_loadpage +* "HtmlWindow#on_cell_clicked":#HtmlWindow_oncellclicked +* "HtmlWindow#on_cell_mouse_hover":#HtmlWindow_oncellmousehover +* "HtmlWindow#on_link_clicked":#HtmlWindow_onlinkclicked +* "HtmlWindow#on_opening_url":#HtmlWindow_onopeningurl +* "HtmlWindow#on_set_title":#HtmlWindow_onsettitle +* "HtmlWindow#read_customization":#HtmlWindow_readcustomization +* "HtmlWindow#select_all":#HtmlWindow_selectall +* &q...
2006 Dec 11
0
[780] trunk/wxruby2/samples/html/html.rb: Error handling eg if no network present or server down
...aded_uri </span><span class="cx"> when URI::Generic </span><span class="lines">@@ -61,7 +68,11 @@ </span><span class="cx"> end </span><span class="cx"> </span><span class="cx"> def on_link_clicked(link) </span><del>- link_uri = URI.parse(link.get_href) </del><ins>+ href = link.get_href + if href =~ /^#/ + super(link) + end + link_uri = URI.parse(href) </ins><span class="cx"> @loaded_uri = load_page_from_uri(link_uri) &lt...
2006 Nov 17
5
0.0.38 release?
Hi Should we look to do a 0.0.38 release soon? I think we should get an updated set of gems out there to show we are making progress. So if you have a moment over the next couple of days, please could you post how stable a release gem from SVN HEAD is on your OS? Linux seems OK on release, crashes in debug mode - which seem to relate to the same failed assertion from wx/event.h.
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
...N_ERROR) + dlg.show_modal + end + + def load_file(file) + @loaded_uri = URI.parse("file:////" + file) + super file + @loaded_uri + end + + def set_page(html) + super html + @html_src = html + get_related_frame.addr_bar.set_value(@loaded_uri.to_s) + end + + def on_link_clicked(link) + link_uri = URI.parse(link.get_href) + @loaded_uri = load_page_from_uri(link_uri) + end + + def on_cell_mouse_hover(cell, x, y) + if link = cell.get_link + get_related_frame.set_status_text(link.get_href) + else + get_related_frame.set_status_text(''''...