WoW:UIHANDLER OnLoad: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(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...)
 
mNo edit summary
Line 1: Line 1:
{{stub/API}}
{{widgethandler}}
== Description ==
== Description ==



Revision as of 04:52, 29 March 2009

Widget handlers < OnLoad

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