Widget handler: OnLoad

Revision as of 04:49, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page UIHANDLER OnLoad to UIHANDLER OnLoad without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Widget handlers < OnLoad

Called when a frame is created

OnLoad(frame)

ParametersEdit

ArgumentsEdit

  • frame (frame) - the frame being created

DetailsEdit

The OnLoad handler is called when a frame is created.

-- frame created, OnLoad handler called here
frame = CreateFrame("Frame") 

-- never called
frame:SetScript("OnLoad", function() print("Frame loaded") end)