I used wxCrafter to create a GUI with a wxRichTextControl. wxCrafter has produced the usual files (wxcrafter.h and .cpp, MainFrame.h and .cpp).
The control is named m_RichTextCtrl_1 and I would like to write some text to it from another class. I tried like suggested at http://docs.wxwidgets.org/trunk/overvie ... tctrl.html (see snippet below), with the result that I cannot access m_RichTextCtrl_1 as it is protected. However, I am not supposed to edit the wxcrafter.* files, of course, in order to change that.
Code: Select all
wxRichTextCtrl& r = MainFrame::m_richTextCtrl_1;
r.AppendText("This is the message!");
What am I missing? (Probably a lot, please be patient with a newbie to C++, OOP and wxCrafter).
Thanks for your help!