I am trying to show a string on the screen while the user still types it. Normally wxDC's DrawText function is used for a string where the contents of the string is already known.
void DrawText(const wxString& text, wxCoord x, wxCoord y)
As we know, this function takes a wxString and prints on the screen. However, how can I let the user type something on the screen (on a wxWindow, wxFrame ). All and all, I am working nowadays on a drawing program where users can draw certain shapes. Certain shapes are easy to draw, move etc... But having a textbox and letting user type something in it is bugging my mind so far. Of course, this should be editable such as when the user clicks again on the same "text box" I should be able to edit it.
One last point, I am trying to avoid using controls such as wxTextCtrl and in a sense trying to make my own textctrl. What would be the best starting point?
Any ideas would be appreciated.