API Frame RegisterForDrag

Registers the frame for dragging with a mouse button.
 Frame:RegisterForDrag([button1, ...])
==Arguments==
:;button1, ...: : - A list of mouse buttons to drag with.
==Details==
* Pass multiple arguments to register several buttons, or none to remove any previous registrations.
* Subsequent calls replace any prior ones.
* Enables and script handlers.
* Blocks and when dragging with a registered button.
==Example==
local f = CreateFrame("Frame", nil, UIParent, "BackdropTemplate")
f:SetPoint("CENTER")
f:SetSize(200, 200)
f:SetBackdrop(BACKDROP_TUTORIAL_16_16)
f:SetMovable(true)
f:EnableMouse(true)
f:RegisterForDrag("LeftButton")
f:SetScript("OnDragStart", function(self, button)
	self:StartMoving()
	print("OnDragStart", button)
end)
f:SetScript("OnDragStop", function(self)
	self:StopMovingOrSizing()
	print("OnDragStop")
end)
* Requires calling or since this is not automatically implied by 
* Requires calling 
830px
==See also==
* Making draggable frames