I haven't really started playing with controls, but I assume the specific answer is you use SetHandler for events related to a control as opposed to system wide events though the event manager. I would assume control:SetHandler("OnShow", myfunc) is the same as using OnShow in the xml definition of the control.
|