Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
(Clean up entry even more and use standard notation.)
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
  +
{{widgetmethod}}
<center>'''GetFrameType''' ''-Documentation by [[user:Darjk|Darjk]]-''</center>
 
   
 
== Synopsis ==
 
== Synopsis ==
Line 16: Line 16:
   
 
== Examples ==
 
== Examples ==
local frameType = getglobal("QuestLogCollapseAllButton"):GetFrameType();
+
local frameType = QuestLogCollapseAllButton:GetFrameType();
   
 
The above should return the string "Button" in local variable frameType.
 
The above should return the string "Button" in local variable frameType.
   
  +
== Notes ==
<br><center><i>Last updated: Patch 1.9.2</i></center>
 
  +
* This method may not exist for all Frames.
----
 
__NOTOC__
 
{{Template:WoW API}}
 
[[Category:API Sub Functions|Empty Template]]
 

Revision as of 16:22, 17 July 2008

Synopsis

string frameType = Frame:GetFrameType();

Description

This returns the type of the frame the GetFrameType() method is used on.

It will return a string of the name of the Frame(-derived) object. For a complete list see object types

Return values

frameType
String - The name of the type, ie. "Frame"

Examples

local frameType = QuestLogCollapseAllButton:GetFrameType();

The above should return the string "Button" in local variable frameType.

Notes

  • This method may not exist for all Frames.