Displaying 3 results from an estimated 3 matches for "addr_bar".
Did you mean:
addr_base
2007 Jul 21
0
[1138] trunk/wxruby2/samples/html/html.rb: Place HTMLWindow in a panel so gets correct bg color on MSW
...gt;- @go_butt = Wx::StaticText.new(self, -1, ''Location:'')
</del><ins>+ @go_butt = Wx::StaticText.new(panel, -1, ''Location:'')
</ins><span class="cx"> top_sizer.add(@go_butt, 0, Wx::ALL, 4)
</span><del>- @addr_bar = Wx::TextCtrl.new(self, -1, ''HOME'', Wx::DEFAULT_POSITION,
</del><ins>+ @addr_bar = Wx::TextCtrl.new(panel, -1, ''HOME'', Wx::DEFAULT_POSITION,
</ins><span class="cx"> Wx::DEFAULT_SIZE, Wx::TE_REA...
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
...uri}",
+ Wx::ICON_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
+...