I am trying to give a class event functions such as .onShow() and .onHide(), so when the object is shown, the .onShow() function will run. How can I allow the function to be change like so:
MyClass myInst = MyClass();
myInst.onShow = OnShowFunction;
Is it possible to allow this?
This is how you do it (and impress/horrify your cow-orkers at the same time):