BlzCreateFrame

Parameters
namestring
ownerframehandle
priorityinteger
createContextinteger
comment

Create a new Frame using a Frame-BluePrint name (fdf) as child of owner. BluePrint needs to be loaded over TOC & fdf. Owner and BluePrint have to be from the Frame family. Can only create rootFrames (not subFrames). Created Frames are stored into the game's Frame-Storage, BlzGetFrameByName(name, createContext). Overwrites occupied slots.

note

Do not create frames during blocking map initialization. Create custom UI at elapsed game time 0.00 or later; loading TOC files during initialization is safe.

note

Frame creation allocates a handle ID. In multiplayer, create frames synchronously for all players and only make visibility or appearance local.

patch

1.31.0.11889

Source
common.j (raise an issue to discuss on Github or submit a PR)
return type
framehandle
Source code
native BlzCreateFrame                              takes string name, framehandle owner, integer priority, integer createContext returns framehandle