Button:SetEnabled()

From Wowpedia
Jump to: navigation, search

Buttons, EditBoxes and Sliders each implement similar methods to enable or disable user interaction. These widgets also appear frozen (greyed out) while disabled, but Button provides several methods to tweak its disabled behaviour.

Button:SetEnabled(enabledFlag)
Button:Enable()
Button:Disable()

EditBox:SetEnabled(enabledFlag)
EditBox:Enable()
EditBox:Disable()

Slider:SetEnabled(enabledFlag)
Slider:Enable()
Slider:Disable()

Arguments

enabledFlag 
Boolean (SetEnabled only) - true equates to Enable() and false equates to Disable()

Patch changes

Previously only Enable() and Disable()

See also

References

 
  1. ^ 2012-08-21, PVEFrame.lua, version 5.0.4.16016, near line 127, archived at Townlong-Yak