On 06/06/2011 15:43, Shawn H Corey wrote:
On 11-06-06 10:25 AM, Mark Dootson wrote:
My tip would be to always use a Wx::Panel within the Wx::Frame. If you
don't, you will get unexpected and annoying differences in background
drawing between different platforms.
OK, it the anything I _should_ do with the panel?
My standard frame creations look something like:
my $frame = Wx::Frame->new(undef, -1, 'Frame Title');
my $mainpanel = Wx::Panel->new($frame, -1, [-1,-1], [-1,-1],
wxTAB_TRAVERSAL|wxBORDER_NONE);
...
my $childcontrol = Wx::SomeControl->new($mainpanel, ......
my $framesizer = Wx::BoxSizer->new(wxVERTICAL);
$framesizer->Add($mainpanel, 1, wxEXPAND|wxALL, 0);
my $mainsizer = Wx::BoxSizer->new(wxVERTICAL);
$mainsizer->Add($childcontrol, ........
$mainpanel->SetSizer($mainsizer);
$frame->SetSizer( $framesizer );
I'm trying to write a simple todo app (like the world needs another one)
because it should be simple enough to help me learn WxPerl but complex
enough so I learn something useful.
I think I put my endeavours on the wiki. :)
Excellent idea.