I have a control system with a lot of tabs. Each of them with many buttons and text controls. I would like to have one single event handler that executes the same code but to different text controls.
For example, 10 text controls have IP values. Instead of 10 events and 10 handlers, i want to use the same event handler function but they need to point to each one's event generation object:
void anyname::OnCheckIP(wxCommandEvent& event)
{
// code to check IP value for the caller text control
}
¿How can I do that? ¿Is is even possible to recover the caller object pointer inside an event handler?