I'm trying to figure out why my ActiveX::IE browser won't default to the size of my notebook tab. I can set the size but unfortunately it won't resize if I change the size of my test app. I've posted my test code below:
package MyApp; use strict; use utf8; use base qw( Wx::App ); use Wx ':everything'; use Wx::Event ':everything'; sub OnInit { my($this) = @_; my($frame) = MyFrame->new( undef, -1, "IE Test" ); $frame->CenterOnScreen; $frame->Show(1); $frame->SetIcon( Wx::GetWxPerlIcon() ); $this->SetTopWindow( $frame ); return 1; } package MyFrame; use Wx qw[:everything]; use Wx::Event qw[:everything]; use Wx::ActiveX::IE qw[:iexplorer]; use base qw(Wx::Frame); use strict; sub new { my( $class ) = shift; my( $self ) = $class->SUPER::new( @_ ); $self->{notebook_1} = Wx::Notebook->new($self, -1, wxDefaultPositi +on, wxDefaultSize, 0); $self->{notebook_1_pane_1} = Wx::Panel->new($self->{notebook_1}, - +1, wxDefaultPosition, [500, 300], ); $self->{notebook_1_pane_2} = Wx::Panel->new($self->{notebook_1}, - +1, wxDefaultPosition, wxDefaultSize, ); $self->{sizer_1} = Wx::BoxSizer->new(wxVERTICAL); $self->{notebook_1}->AddPage($self->{notebook_1_pane_1}, "Tab1"); $self->{notebook_1}->AddPage($self->{notebook_1_pane_2}, "Tab2"); $self->{sizer_1}->Add($self->{notebook_1}, 1, wxEXPAND, 0); $self->SetSizer($self->{sizer_1}); $self->{sizer_1}->Fit($self); $self->Layout(); my $browser = Wx::ActiveX::IE->new( $self->{notebook_1_pane_1} , - +1 , wxDefaultPosition , wxDefaultSize ); #my $browser = Wx::ActiveX::IE->new( $self->{notebook_1_pane_1} , +-1 , wxDefaultPosition , [500, 300] ); $browser->LoadUrl("http://www.google.com"); return $self; } 1; package main; my($app) = MyApp->new(); $app->MainLoop();
Does anyone see what I'm missing?

In reply to wxPerl and ActiveX by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.