WoWWiki

This wiki contains inaccurate and out-of-date information. Please head over to https://wowpedia.fandom.com for more accurate and up-to-date game information.

READ MORE

WoWWiki
Advertisement

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

Advertisement