Class: Wx::HtmlWindow

Inherits:
Object
  • Object
show all
Defined in:
lib/wx/classes/htmlwindow.rb

Instance Method Summary collapse

Instance Method Details

#load_file(file) ⇒ Object

imitate the in-built LoadFile method



3
4
5
# File 'lib/wx/classes/htmlwindow.rb', line 3

def load_file(file)
  set_page( File.read(file) )
end

#on_opening_url(url) ⇒ Object

This is called from within wxWidgets whenever a URL is being opened. The method may return true, to signal that the opening should be permitted, false or nil to signal that it should be blocked, or a string URL to which it should be redirected



11
12
13
# File 'lib/wx/classes/htmlwindow.rb', line 11

def on_opening_url(url)
  true
end