WoW:UIHANDLER OnLoad: Difference between revisions
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...) |
m (Move page script moved page UIHANDLER OnLoad to UIHANDLER OnLoad without leaving a redirect) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{widgethandler}} | |||
Called when a frame is created | |||
OnLoad(frame) | |||
== Arguments == | == Parameters == | ||
=== Arguments === | |||
* frame (frame) - the frame being created | |||
== Details == | |||
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) |
Latest revision as of 04:49, 15 August 2023
Called when a frame is created
OnLoad(frame)
Parameters[edit]
Arguments[edit]
- frame (frame) - the frame being created
Details[edit]
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)