From: Mark D. <mar...@zn...> - 2007-03-17 12:37:53
|
Re prior post: Just in case anyone is looking at the example my $frame = MyInherits->VPNew( title => 'My Window', bordertop => 0 ); and wondering what on earth 'bordertop' is, it is a duff example. It has always seemed more natural to me to define control layout in terms of the controls themselves so a 'proper' example would be my $txtctrl = MyInheritsVPText->VPNew( bordertop => 0 ); VP->AddToSizer( $mysizer, $txtctrl ); So the AddToSizer function grabs the Add params from $txtctrl which itself provides sensible defaults. Mark |