Added support for wxTextCtrl