Adding TextCtrl to WxNotebook Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
gillp28
Knows some wx things
Knows some wx things
Posts: 25
Joined: Tue Jun 25, 2019 3:19 pm

Adding TextCtrl to WxNotebook

Post 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);
Last edited by gillp28 on Mon Jul 15, 2019 7:16 pm, edited 2 times in total.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7477
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Adding TextCtrl to WxNotebook

Post by ONEEYEMAN »

Hi,
I don't see where are you adding the control to a sizer...

Thank you.
gillp28
Knows some wx things
Knows some wx things
Posts: 25
Joined: Tue Jun 25, 2019 3:19 pm

Re: Adding TextCtrl to WxNotebook

Post by gillp28 »

Thanks, I got it.
Post Reply