I'm storing in std::vector multiple wxTextCtrls.
When I press on some button new wxTextCtrl is added to vector.
But how to remove wxTextCtrl upon click?
Do I need to use:
m_textCtrl->Close();
or
m_textCtrl->Destroy();
and do I have to unbind events attached to them previously.
Remove dynamically added elements. Topic is solved
Re: Remove dynamically added elements.
Code: Select all
m_textCtrl->Destroy();
https://docs.wxwidgets.org/trunk/classw ... 22f9de9d90
Nodo I have to unbind events attached to them previously.
Use the source, Luke!