Frame:SetToplevel

From Warcraft Wiki
Jump to navigation Jump to search

Controls whether or not a frame should raise its frame level on mouse interaction.

Frame:SetToplevel(topLevel)

Arguments

topLevel
boolean - If true, to marks this frame as a toplevel frame.

Details

  • Typically, this function should be applied to any window-like frames that are displayed in the UI.
  • When enabled, toplevel frames will raise their own frame level dynamically when clicked with the mouse. Render layer flattening will also be implicitly enabled.

Patch changes

Bc icon.gif Patch 2.0.1 (2006-12-05): Cannot be called on protected frames in combat.
WoW Icon update.png Patch 1.10.1 (2006-04-11): Added.

See also