Thanks John. That did the trick.
 
----- Original Message -----
From: John Ralls
To: wxperl-users
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 = Wx::Dialog->new($self,-1,'title',[-1,-1],[400,300]);
 
 my $TextBox = 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