I'm back again, with another question:
I want the scrollframe to scroll to the bottom whenever the text on it is updated. So, in the function that updates the text I have the following code (Not the actual code just a dumbed down version):
Code:
local scrollBar = getglobal(scrollFrame:GetName() .. "ScrollBar");
scrollBar:SetMaxValue(scrollFrame:GetVerticalScrollRange());
scrollBar:SetValue(scrollFrame:GetVerticalScrollRange());
scrollFrame:SetVerticalScroll(scrollFrame:GetVerticalScrollRange());
Which should work, since the GetVerticalScrollRange() And the max value of a ScrollBar should be the same from the two objects. The only thing is that it never actually scrolls it to the bottom. It scrolls it to the size of the prior change, rather than the current change (11 pixels off per line of text added) which defeats the attempt to simulate a scrolling-chat frame.