Commit b9eb1f5c authored by nevcairiel's avatar nevcairiel
Browse files

AceGUI-3.0: Disable the "Accept" Button on the MultiLineEditBox as well when...

AceGUI-3.0: Disable the "Accept" Button on the MultiLineEditBox as well when disabling the widget (Ticket #84)


git-svn-id: https://repos.wowace.com/wow/ace3/trunk@867 5debad98-a965-4143-8383-f471b3509dcf
parent e6a797f5
......@@ -29,7 +29,7 @@ local _G = getfenv()
local AceGUI = LibStub("AceGUI-3.0")
local Version = 10
local Version = 11
---------------------
-- Common Elements --
---------------------
......@@ -127,11 +127,13 @@ do
self.editbox:ClearFocus()
self.editbox:SetTextColor(0.5, 0.5, 0.5)
self.label:SetTextColor(0.5,0.5,0.5)
self.button:Disable()
else
self.editbox:EnableMouse(true)
self.scrollframe:EnableMouse(true)
self.editbox:SetTextColor(1, 1, 1)
self.label:SetTextColor(1,.82,0)
self.button:Enable()
end
end
......@@ -263,7 +265,9 @@ do
if value ~= self.lasttext then
self:Fire("OnTextChanged", value)
self.lasttext = value
self.button:Enable()
if not self.disabled then
self.button:Enable()
end
end
end)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment