this:GetParent():SetVerticalScroll(arg1) ScrollFrame_OnLoad() ScrollFrame_OnScrollRangeChanged(arg2) local scrollbar = getglobal(this:GetName() .. "ScrollBar") scrollbar:SetValue(arg1) local up = getglobal(scrollbar:GetName() .. "ScrollUpButton") local down = getglobal(scrollbar:GetName() .. "ScrollDownButton") local _, maxScroll = scrollbar:GetMinMaxValues() if arg1 == 0 then up:Disable() else up:Enable() end if scrollbar:GetValue() == maxScroll then down:Disable() else down:Enable() end ScrollFrameTemplate_OnMouseWheel(arg1) this:ClearFocus() this:HighlightText(0, 0) this:HighlightText()