Graciliano Monteiro Passos > Wx-ActiveX-0.02 > Wx::ActiveX

Download:
Wx-ActiveX-0.02.tar.gz

Dependencies

Annotate this POD

Related Modules

Win32::GuiTest
Win32::OLE
Win32::GUI
Pod::POM
Tcl::Tk
Data::Dumper
Tk::HTML
Filter::Simple
Regexp::Common
Net::SMTP
more...
By perlmonks.org

CPAN RT

Open  0
Report a bug
Module Version: 0.02   Source   Latest Release: Wx-ActiveX-0.12

NAME ^

Wx::ActiveX - ActiveX interface. (Beta) (only Wx:ActiveX::IE is stable)

SYNOPSIS ^

  use Wx::ActiveX ;
  my $activex = Wx::ActiveX->new( $this , "ShockwaveFlash.ShockwaveFlash" , 101 , wxDefaultPosition , wxDefaultSize );

DESCRIPTION ^

This is only the basics to load an ActiveX control inside Wx. For now it only handle events. Still can't use methods of a control! ;-/ (Maybe you can help in this part of the development. ;-P)

new ( PARENT , CONTROL_ID , ID , POS , SIZE )

Create the ActiveX control.

EVENTS ^

All the events use EVT_ACTIVEX.

  EVT_ACTIVEX($parent , $activex , "EventName" , sub{...} ) ;

You can get the list of ActiveX events using GetEventName():

  for(0..($activex->GetEventCount)) {
    my $evt_name = $activex->GetEventName($_) ;
    print "$_> $evt_name\n" ;
  }

Eache ActiveX event has their own argument list (hash), and the Key 'Cancel' can be used to ignore the event. In this example any new window will be canceled, seting $evt->{Cancel} to true:

  EVT_ACTIVEX($this,$activex,sub{
    my ( $obj , $evt ) = @_ ;
    $evt->{Cancel} = 1 ;
  }) ;

NOTE ^

This package only works for Win32, since it use AtiveX.

SEE ALSO ^

Wx:ActiveX::IE Wx

AUTHOR ^

Graciliano M. P. <gm@virtuasites.com.br> Thanks to wxWindows peoples and Mattia Barbon for wxPerl! :P Thanks to Justin Bradford <justin@maxwell.ucsf.edu> and Lindsay Mathieson <lmathieson@optusnet.com.au>, that wrote the C classes for wxActiveX and wxIEHtmlWin.

COPYRIGHT ^

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.