I would like to make a reusable panel containing a text box in which the user can specify comma separated rotations such as 0, 45, 90, 270-360 (like print options where you can specify specific pages or range of pages). Making the text box and parsing the text on .TextChanged or .TextChanging events is straight forward, the handler splits and cleans up the input the way I want it. What I would like to do is make an event that emits from the reusable panel when the handler is successful and has valid output, not on every change that is made to the text.
So I would have a main form, which contains instances of my reusable panel (one for x, y and z axis). Each instance would have an event called something like rotation_input_valid which I could handle in the main form to use elsewhere.
I guess I’m trying to make self contained panels of controls that gather user input, process it, and produce an output, without having to expose all the inner workings of the panel.
Is that a clear description? It seems common to make custom events in c#, but I haven’t been able to translate that to ironpython (and maybe eto is another layer of confusion).