Run when the frame is created. In practice, this handler is only applicable when defined in XML (either for frames created in XML or for XML templates inherited by dynamically created frames). A frame created via CreateFrame() will have already run its (non-existent) OnLoad script by the time that function returns, leaving no opportunity to run an OnLoad handler set later.

Signature:

OnLoad(self)

Arguments:

  • self - Reference to the widget for which the script was run (frame)