From: Mattia B. <mat...@li...> - 2005-10-25 20:59:40
|
On Mon, 24 Oct 2005 13:36:52 +0800 Foo Ji-Haw <jh...@ne...> wrote: Hi, > I am trying to create a nested BoxSizer-in-a-BoxSizer. Outer sizer is vertical, inner sizer is horizontal. > > In the horizontal sizer, I have a single button in a row which I want to align to the RIGHT. This is my code: > my $sizer = Wx::BoxSizer->new(wxVERTICAL); > $this->SetSizer($sizer); > ... > my $ButtonSizer = Wx::BoxSizer->new(wxHORIZONTAL); > $sizer->Add($ButtonSizer,0,wxGROW); > > my $btnClose = Wx::Button->new($this,-1,'C&lose'); > $ButtonSizer->Add($btnClose,1,wxALL|wxALIGN_RIGHT,5); What if you use: $ButtonSizer->Add($btnClose,0,wxALL|wxALIGN_RIGHT,5); HTH Mattia |