Hi

Ive 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], );

Im thinking my Perl is screwed up but Im unsure where. Hope someone can help.

Thanks
Brian Rowlands

Education is the best provision for the journey to old age.

Aristotle