Page 1 of 1

Adding TextCtrl to WxNotebook

Posted: Mon Jul 15, 2019 6:48 pm
by gillp28
I am trying to add a wxRichTextCtrl to fit the whole page of a wxNotebook. But it is just making a small box in the corner.

wxRichTextCtrl* textCtrl = new wxRichTextCtrl(page,wxID_ANY, ("Add Note"), wxDefaultPosition, wxDefaultSize, wxRE_MULTILINE, wxDefaultValidator);
sizer->Add(textCtrl, 1, wxEXPAND | wxALL,2);
page->SetSizer(sizer);

Re: Adding TextCtrl to WxNotebook

Posted: Mon Jul 15, 2019 7:09 pm
by ONEEYEMAN
Hi,
I don't see where are you adding the control to a sizer...

Thank you.

Re: Adding TextCtrl to WxNotebook

Posted: Mon Jul 15, 2019 7:15 pm
by gillp28
Thanks, I got it.