C'est simple ...
Le caractère entré se trouve à la position actuelle du curseur - 1.
Comment récupérer cette position?
Avec cet évènement je pense :
EVT_TEXT(id, func) Respond to a wxEVT_COMMAND_TEXT_UPDATED event, generated when the text changes. Notice that this event will always be sent when the text controls contents changes - whether this is due to user input or comes from the program itself (for example, if SetValue() is called)
Donc à cet évènement tu associe une fonction
Dans cette fonction tu fais qqch du genre :
char c = textctrl->GetValue[textctrl->GetInsertionPoint()]
Partager