WoW:API GetMouseFocus: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 27: Line 27:


----
----
{{Template:WoW API}}
 
{{template:WoW API}}

Revision as of 19:41, 30 December 2005

GetMouseFocus -Documentation by Gello-
frameID = GetMouseFocus();

Returns the frame that is currently receiving mouse events. The frame must have enableMouse="true"


Arguments
none

Results
frameID
frameID
Table - The frame that currently has the mouse focus.

Example

You can get the name of the mouse-enabled frame beneath the pointer with this:

message( "The mouse is over " .. GetMouseFocus():GetName() );
Result
The mouse is over WorldFrame

Template:WoW API