auto resize of wxRichTextCtrl
Rory Walsh
rorywalsh at ear.ie
Sun Mar 18 12:53:47 PDT 2007
Thanks Vadim. I'll try using a sizer.
Rory.
Vadim Zeitlin wrote:
> On Sun, 18 Mar 2007 19:32:34 +0000 Rory Walsh <rorywalsh at ear.ie> wrote:
>
> RW> I'm having a little problem which I hope someone might be able to help
> RW> me with. If I place a wxRichTextCtrl onto my main frame it resizes when
> RW> I resize my main frame. However, if I place the same control on a
> RW> notebook page it doesn't seem to resize to the size of the notebook
> RW> page? How can I explicitly tell it to resize to whatever size the
> RW> notebook page is?
>
> You need to use a sizer or any other way of resizing controls as notebook
> pages don't automatically resize their (only) child to fill their entire
> area, only wxFrame does this (because it's common to have a single panel as
> a child of wxFrame but rather uncommon to have a single control in a
> notebook page).
>
> Regards,
> VZ
>
More information about the wx-users
mailing list