From: Brian R. (G. H. School) <Row...@gr...> - 2008-06-09 10:16:31
|
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. <http://www.quotationspage.com/quote/34568.html> Aristotle |