| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/WIN32OLE_EVENT/ |
Upload File : |
U:RDoc::AnyMethod[iI"
on_event:ETI"WIN32OLE_EVENT#on_event;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"!Defines the callback event. ;TI"MIf argument is omitted, this method defines the callback of all events. ;TI"JIf you want to modify reference argument in callback, return hash in ;TI"Ocallback. If you want to return value to OLE server as result of callback ;TI"use `return' or :return.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"7ie = WIN32OLE.new('InternetExplorer.Application')
;TI"!ev = WIN32OLE_EVENT.new(ie)
;TI"6ev.on_event("NavigateComplete") {|url| puts url}
;TI"4ev.on_event() {|ev, *args| puts "#{ev} fired"}
;TI"
;TI"-ev.on_event("BeforeNavigate2") {|*args|
;TI" ...
;TI"A # set true to BeforeNavigate reference argument `Cancel'.
;TI"4 # Cancel is 7-th argument of BeforeNavigate,
;TI"> # so you can use 6 as key of hash instead of 'Cancel'.
;TI") # The argument is counted from 0.
;TI"2 # The hash key of 0 means first argument.)
;TI"A {:Cancel => true} # or {'Cancel' => true} or {6 => true}
;TI"}
;TI"
;TI"ev.on_event(...) {|*args|
;TI"# {:return => 1, :xxx => yyy}
;TI"};T:@format0:
@fileI""ext/win32ole/win32ole_event.c;T:0@omit_headings_from_table_of_contents_below0I"+WIN32OLE_EVENT#on_event([event]){...}
;T0[ I"(*args);T@'FI"WIN32OLE_EVENT;TcRDoc::NormalClass00