UIOBJECT Button

inherits Frame, created with ("Button")
==Example==
local btn = CreateFrame("Button", nil, UIParent, "UIPanelButtonTemplate")
btn:SetPoint("CENTER")
btn:SetSize(100, 40)
btn:SetText("Click me")
btn:SetScript("OnClick", function(self, button, down)
	print("Pressed", button, down and "down" or "up")
end)
btn:RegisterForClicks("AnyDown", "AnyUp")
Button_Click_me.png|link=
API_Button_RegisterForClicks_01.png|link=
==Methods==
==Scripts==
==See also==
* SecureActionButtonTemplate - Allows protected functions
* SecureUnitButtonTemplate - Allows protected functions directed toward a UnitId
* InsecureActionButtonTemplate - Allows protected functions outside combat