Synchronizing GUI Memo Box with Scroll Bar

Started by EK.IceFlake, Oct 27, 2016, 04:01 PM

Previous topic - Next topic

EK.IceFlake

I tried this, this almost works - it works that when the scrollbar is most down the memobox is most down and it looks like it works except that it skips a few lines at the top.
function GUI::ScrollbarScroll(scrollbar, position, change)
{
    if (Server.RUS != null && scrollbar == Server.RUS)
    {
        Server.RUB.DisplayPos = 1 - position;
    }
}

How do I get them to synchronize? Thanks for your help.

EK.IceFlake


DizzasTeR

I don't even understand what your problem is, maybe explain with some screens and actually show the problem somehow

EK.IceFlake




As you can see the scrollbar isnt perfectly synchronized with the memobox.

EK.IceFlake


EK.IceFlake


EK.IceFlake