Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:Widget API
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== [[UIOBJECT Button|Button]] === : {{id|API|Button|Click}}() - Execute the click action of the button. : {{id|API|Button|Disable}}() - Disable the Button so that it cannot be clicked. : {{id|API|Button|Enable}}() - Enable to the Button so that it may be clicked. : {{id|API|Button|GetButtonState}}() - Return the current state ("PUSHED","NORMAL") of the Button. : {{id|API|Button|GetDisabledFontObject}}() - Return the font object for the Button when disabled (added 1.10) : REMOVED {{id|API|Button|GetDisabledTextColor}}() - Get the color of this button's text when disabled (r, g, b, a) (added 1.11)(removed 3.0.2) : {{id|API|Button|GetDisabledTexture}}() - Get the texture for this button when disabled (added 1.11) : REMOVED {{id|API|Button|GetFont}}() - Returns the font, size, and flags currently used for display on the Button. (removed 3.0.2) : {{id|API|Button|GetFontString}}() - Get this button's label FontString (added 1.11) : {{id|API|Button|GetHighlightFontObject}}() - Return the font object for the Button when highlighted (added 1.10) : REMOVED {{id|API|Button|GetHighlightTextColor}}() - Get the color of this button's text when highlighted (r, g, b, a) (added 1.11)(removed 3.0.2) : {{id|API|Button|GetHighlightTexture}}() - Get the texture for this button when highlighted (added 1.11) : {{id|API|Button|GetNormalTexture}}() - Get the normal texture for this button (added 1.11) : {{id|API|Button|GetNormalFontObject}}() - Get the Normal Font Object of the button (added 3.0.0) : {{id|API|Button|GetPushedTextOffset}}() - Get the text offset when this button is pushed (x, y) (added 1.11) : {{id|API|Button|GetPushedTexture}}() - Get the texture for this button when pushed (added 1.11) : {{id|API|Button|GetText}}() - Get the text label for the Button. : REMOVED {{id|API|Button|GetTextColor}}() - Get the normal color of this button's text (r, g, b, a) (added 1.11) (removed 3.0.2) : REMOVED {{id|API|Button|GetTextFontObject}}() - Return the font object for the Button's normal text (added 1.10)(removed 3.0.2) : {{id|API|Button|GetTextHeight}}() - Get the height of the Button's text. : {{id|API|Button|GetTextWidth}}() - Get the width of the Button's text. : {{id|API|Button|IsEnabled}}() - Determine whether the Button is enabled. : {{id|API|Button|LockHighlight}}() - Set the Button to always be drawn highlighted. : {{id|API|Button|RegisterForClicks}}("clickType"[,"clickType"...]) - Specify which mouse button up/down actions cause receive an OnClick notification. : {{id|API|Button|SetButtonState}}("state"[, lock]) - Set the state of the Button ("PUSHED", "NORMAL") and whether it is locked. : {{id|API|Button|SetDisabledFontObject}}([font]) - Set the font object for settings when disabled (added 1.10) : REMOVED {{id|API|Button|SetDisabledTextColor}}(r, g, b[, a]) - Set the disabled text color for the Button. (removed 4.0.1) : {{id|API|Button|SetDisabledTexture}}(texture or "texturePath") - Set the disabled texture for the Button (updated in 1.10) : {{id|API|Button|SetFont}}("font", size[,"flags"]) - Set the font to use for display. : {{id|API|Button|SetFontString}}(fontString) - Set the button's label FontString (added 1.11) : {{id|API|Button|SetFormattedText}}("formatstring"[, ...]) - Set the formatted text label for the Button. (added 2.3) : {{id|API|Button|SetHighlightFontObject}}([font]) - Set the font object for settings when highlighted (added 1.10) : REMOVED {{id|API|Button|SetHighlightTextColor}}(r, g, b[, a]) - Set the highlight text color for the Button. (removed 4.0.1) : {{id|API|Button|SetHighlightTexture}}(texture or "texturePath"[,alphaMode]) - Set the highlight texture for the Button (updated in 1.10) : {{id|API|Button|SetNormalTexture}}(texture or "texturePath") - Set the normal texture for the Button (updated in 1.10) : {{id|API|Button|SetNormalFontObject}}(FontString) - Replaces SetTextFontObject (updated in 3.0) : {{id|API|Button|SetPushedTextOffset}}(x, y) - Set the text offset for this button when pushed (added 1.11) : {{id|API|Button|SetPushedTexture}}(texture or "texturePath") - Set the pushed texture for the Button (updated in 1.10) : {{id|API|Button|SetText}}("text") - Set the text label for the Button. : REMOVED {{id|API|Button|SetTextColor}}(r, g, b) - Set the text color for the Button. (removed 3.0.2) : REMOVED {{id|API|Button|SetTextFontObject}}([font]) - Set the font object to get settings from for this Button's normal state (added 1.10)(removed 3.0.2) : {{id|API|Button|UnlockHighlight}}() - Set the Button to not always be drawn highlighted.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)