Unfortunately, the TabStrip doesn't have the magic functionality
you're looking for.  It's just a row of buttons, not a set of neat
little subwindows that you can switch between.

What you want to do is create all of the buttons in your main window,
hiding the ones that aren't in view controlled by the first button in
the TabStrip.  Then you hide or activate the appropriate controls in
your window in the TabStrip's onChange handler.

On Mon, Jun 9, 2008 at 6:14 AM, Brian Rowlands (Greymouth High School)
<[EMAIL PROTECTED]> wrote:
> Hi
>
> I've created a tabstrip and want to add a button to a tab but seem unable to
> fathom out the precise syntax. Can someone guide me please?
>
> I have:
>
> ….
>
> $tabs = $main->AddTabStrip ( -name => "tab", -left => 150, -top => 10,
> -width => 700, -height=> $height - 200, );
>
>  $tabs->InsertItem( -name=> "stock", -text => "Stock", -index=> 0 );
>
> I tried adding a button several  ways:
>
> 1.      $main-> stock-> Addbutton( -text => 'Reset Fields', -pos => [10,
> 10], -size => [30, 70], );
>
> 2.      $tabs-> stock-> Addbutton( -text => 'Reset Fields', -pos => [10,
> 10], -size => [30, 70], );
>
> 3.      $main-> tab-> stock-> Addbutton( -text => 'Reset Fields', -pos =>
> [10, 10], -size => [30, 70], );
>
> 4.      $main-> $tabs-> stock-> Addbutton( -text => 'Reset Fields', -pos =>
> [10, 10], -size => [30, 70], );
>
> I'm thinking my Perl is screwed up but I'm unsure where. Hope someone can
> help.
>
> Thanks
> Brian Rowlands
>
> Education is the best provision for the journey to old age.
>
> Aristotle
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> http://perl-win32-gui.sourceforge.net/
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/

Reply via email to