I’ve just uploaded an example of how one could separate the event handling from the control: it’s all there in wx!!!