![]() |
Wowpedia is no longer updated, go away. |
Invoked when the object is created.
(self)
Arguments[]
- self
- ScriptObject - The new widget.
Details[]
- Requires definition in XML to be useful; i.e. before the widget is constructed.
Example[]
In XML:
<Frame name="MyFrameTemplate" virtual="true">
<Scripts>
<OnLoad>
print("HelloWorld!")
</Onload>
</Scripts>
</Frame>
In Lua:
CreateFrame("Frame", nil, nil, "MyFrameTemplate") -- HelloWorld!