WoW:API CreateFrame: Difference between revisions

m
→‎Notes: Added 3rd note
(Reformat. Add info on "inheritsFrame" parameter added in 1.11.)
m (→‎Notes: Added 3rd note)
Line 38: Line 38:
* CreateFrame() was added in 1.10
* CreateFrame() was added in 1.10
* The fourth argument, inheritFrame, was added in 1.11
* The fourth argument, inheritFrame, was added in 1.11
* In creating frames with CreateFrame(), you cannot use the OnLoad script handler (e.g. Frame:SetScript("OnLoad", ''function'')) since CreateFrame() loads the frame before Frame:SetScript() is called. If you want to use the OnLoad script handler, define the frame in an XML file that is called before the LUA file or call the OnLoad function manually at the end of the LUA file.
Anonymous user