search for: set_pag

Displaying 11 results from an estimated 11 matches for "set_pag".

Did you mean: set_tag
2008 Mar 13
0
[ wxruby-Bugs-18812 ] Wx::HtmlWindow#set_page()
...You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=18812&group_id=35 Category: Incorrect behavior Group: current Status: Open Resolution: None Priority: 4 Submitted By: Mario Steele (eumario) Assigned to: Alex Fenton (brokentoy) Summary: Wx::HtmlWindow#set_page() Initial Comment: There''s a current bug with Wx::HtmlWindow#set_page(), in which you include HTML Source that has an image, the following error is generated: ----------------[First Instance]------------------ html_error1.rb:27: [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i386-ms...
2005 May 03
4
Wx::HtmlWindow.on_link_clicked
...9;'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 = WrappedHtml.new dialog, -1 html.set_page <<EOF <html> <body> <a href="http://favicon.ru/en/">My wife web project</a><br /> <a href="mailto:dmiceman@mail.ru">mail me</a><br /> </body> </html> EOF sizer.add html, 1, Wx::EXPAND dialog.set_s...
2006 Oct 17
0
[682] trunk/wxruby2/doc/textile/htmlwindow.txtl: Fix some little formatting errors that were causing the page to be unreadable
...ndow is constant - given in the constructor - and virtual height </span><span class="cx"> is changed dynamically depending on page size. </span><span class="cx"> Once the window is created you can set its content by calling </span><del>-"set_page(text)":#HtmlWindow_setpage(text), -"load_page(filename)":#HtmlWindow_loadpage(filename) or -"load_file":#HtmlWindow_loadfile. </del><ins>+"set_page(html_code)":#HtmlWindow_setpage, +"load_page(location)":#HtmlWindow_loadpage or +"load_f...
2006 Dec 11
0
[780] trunk/wxruby2/samples/html/html.rb: Error handling eg if no network present or server down
...an><del>- res = Net::HTTP.start(uri.host, uri.port) do | http | - http.get(uri.path) </del><ins>+ begin + res = Net::HTTP.start(uri.host, uri.port) do | http | + http.get(uri.path) + end + @loaded_uri = uri + set_page(res.body) + rescue => err + msg = "Could not load page:\n#{err}" + Wx::MessageDialog.new(nil, msg, ''Error loading page'', + Wx::OK|Wx::ICON_ERROR).show_modal + return '''' </ins>&...
2007 Jun 16
1
exemple html
Bonjour, je voudrait savoir si il est possible d''aller chercher des flux rss et d''affiché les pages web avec l''exemple que vous donnez dans wxruby2: ''html'', car je cherche une bibliothèque ou autre qui puisse me permettre de faire celà. merci Sebastien _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org
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 Jun 22
1
exemple html - RSS
...9;', ''http-access2'') et l''analyser (par exemple ''rexml''). Donc, on devrait créer HTML qui répresente ce que contient le RSS (le titre, le page vers ce qu''il lier, etc), et l''afficher dans Wx::HtmlWindow par son mèthode ''set_page'', qui accepte un paramètre de source HTML. En cette manière, on peut realiser un lecteur flux RSS/atom. sébastien répond: j''ai réaliser un lecteur rss/atom qui me permet d''avoir le nom du flux avec l''heure, la date, et le titre de l''article, mais ce q...
2007 Feb 12
0
[866] trunk/wxruby2/doc/textile/htmlwindow.txtl: Added missing methods section
..._text":#HtmlWindow_selectiontotext +* "HtmlWindow#select_line":#HtmlWindow_selectline +* "HtmlWindow#select_word":#HtmlWindow_selectword +* "HtmlWindow#set_borders":#HtmlWindow_setborders +* "HtmlWindow#set_fonts":#HtmlWindow_setfonts +* "HtmlWindow#set_page":#HtmlWindow_setpage +* "HtmlWindow#set_related_frame":#HtmlWindow_setrelatedframe +* "HtmlWindow#set_related_status_bar":#HtmlWindow_setrelatedstatusbar +* "HtmlWindow#to_text":#HtmlWindow_totext +* "HtmlWindow#write_customization":#HtmlWindow_writecus...
2007 Jul 21
0
[1138] trunk/wxruby2/samples/html/html.rb: Place HTMLWindow in a panel so gets correct bg color on MSW
...= MyHtmlWindow.new(panel, -1) </ins><span class="cx"> @html_win.set_related_frame(self, ''HTML Window: %s'') </span><span class="cx"> @html_win.set_related_status_bar(2) </span><span class="cx"> @html_win.set_page(DATA.read) </span><span class="cx"> sizer.add(@html_win, 1, Wx::ALL|Wx::GROW, 4) </span><del>- self.set_sizer(sizer) </del><ins>+ panel.set_sizer(sizer) </ins><span class="cx"> end </span><span class="cx&...
2006 Nov 12
0
[724] trunk/wxruby2: Initial commit of HtmlWindow functionality
...htmlwindow.rb&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2006-11-12 16:24:34 UTC (rev 724) </span><span class="lines">@@ -0,0 +1,6 @@ </span><ins>+class Wx::HtmlWindow + # imitate the in-built LoadFile method + def load_file(file) + set_page( File.read(file) ) + end +end </ins></span></pre></div> <a id="trunkwxruby2sampleshtmlhtmlrb"></a> <div class="addfile"><h4>Added: trunk/wxruby2/samples/html/html.rb (0 => 724)</h4> <pre class="diff"><...
2007 Mar 22
0
[916] branches/wxruby2/wxwidgets_282: More Wx::AUI classes, event hooks and sample
...Size.new(width, height), @mgr ) + end + + def create_html_ctrl(parent = nil) + if not parent + parent = self + end + ctrl = Wx::HtmlWindow.new(parent, Wx::ID_ANY, + Wx::DEFAULT_POSITION, + Wx::Size.new(400, 300) ) + ctrl.set_page(DATA.read) + ctrl + end + + def create_notebook + # create the notebook off-window to avoid flicker + client_size = get_client_size + + ctrl = Wx::AuiNotebook.new( self, Wx::ID_ANY, + Wx::Point.new(client_size.x, client_size.y), +...