WoW:UIHANDLER OnLoad

From AddOn Studio
Revision as of 02:25, 29 March 2009 by WoWWiki>Erictheturtle (New page: == Description == The OnLoad handler is called when a frame is created. frame = CreateFrame("Frame"); -- frame created, OnLoad handler called frame:SetScript("OnLoad", function() print...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

The OnLoad handler is called when a frame is created.

frame = CreateFrame("Frame"); -- frame created, OnLoad handler called
frame:SetScript("OnLoad", function() print("Frame loaded") end); -- never called

Arguments

self - the frame being created