API Frame EnableMouse

From Wowpedia
Jump to: navigation, search

Allows a frame to receive mouse input via OnMouseDown, OnMouseUp or OnClick. The frame must be shown to receive mouse events.

frame:EnableMouse(enableFlag)


Arguments

enableFlag
Boolean - Whether to enable (true) or disable (false|nil)


Notes

Setting a mouse event handler (OnMouseDown, OnMouseUp and most likely OnClick) using SetScript will automatically set the mouse to enabled.


See also