From: Eriam S. <er...@er...> - 2007-03-17 14:00:57
|
Hello I just came across Wx::WidgetMaker http://search.cpan.org/~slanning/Wx-WidgetMaker-0.11/lib/Wx/WidgetMaker.pm Which is an attempt to ease the creation of wx based applications. I havent tested that though but I'm interested to see what you think about this. Eriam Mark Dootson a écrit : > 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. > > |