Displaying 1 result from an estimated 1 matches for "lppppi".
2005 May 03
4
Wx::HtmlWindow.on_link_clicked
...==============================================
require ''Win32API''
require ''wxruby''
class WrappedHtml < Wx::HtmlWindow
def initialize(*args)
super
@shell = Win32API.new(''shell32'', ''ShellExecute'', ''LPPPPI'', ''L'')
end
def on_link_clicked(link)
@shell.call 0, ''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...