Displaying 3 results from an estimated 3 matches for "link_uri".
Did you mean:
link_url
2006 Dec 11
0
[780] trunk/wxruby2/samples/html/html.rb: Error handling eg if no network present or server down
...> 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)
</span><span class="cx">...
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
...l
+ 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('''')
+ end
+ end
+e...