search for: icon_error

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

Did you mean: cog_error
2011 Jul 15
1
Standard icon in custom dialog
Is there any way to grab a standard icon for a custom dialog? I have a message box with Wx::ICON_ERROR, and I want to add a check box to it. The only way I know to do this is to create a custom dialog. Then I can use a standard button sizer to get the proper buttons, but I can''t find the error icon. Any hints are appreciated. Thanks! --- Ryan Hinton L-3 Communications / Communication Sy...
2006 Dec 11
0
[780] trunk/wxruby2/samples/html/html.rb: Error handling eg if no network present or server down
...et(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><span class="cx"> end </span><del>- @loaded_uri = uri - set_page(res.body) </del><span class="cx"> end </span><span class="cx"> re...
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
...e(@loaded_uri.path), uri.path) + return load_file( local_file ) + end + end + end + + dlg = Wx::MessageDialog.new(nil, "Can''t load link", + "Unable to load the link #{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...