From: Foo Ji-H. <jh...@ne...> - 2005-10-25 02:31:24
|
Thanks John. That did the trick. ----- Original Message -----=20 From: John Ralls=20 To: wxperl-users=20 Sent: Tuesday, October 25, 2005 1:00 AM Subject: Re: [wxperl-users] Making a TextCtrl fit a dialog box On Oct 24, 2005, at 2:11 AM, Foo Ji-Haw wrote: Hello all, I'm trying to do the above. No other controls required. = Just plain old textctrl. My code is as follows: my $dlg =3D Wx::Dialog->new($self,-1,'title',[-1,-1],[400,300]); =20 my $TextBox =3D Wx::TextCtrl->new($dlg,-1, 'xxx',wxDefaultPosition, wxDefaultSize, wxTE_READONLY|wxTE_MULTILINE); $dlg->ShowModal; Unfortunately the text ctrl does not fit the entire dialog. What = else is needed? A sizer. Regards, John Ralls |