Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 21st Nov 2012 13:06
I have this scroll pane piece of code working really well, but i can't figure out how lineOffset is working.For example:
lines$(50)
lineOffset = 500 * value#

but if change lines$ to 500 like this:
lines$(500)
I found that i need to adjust this line to this or the scrolling becomes wierd:
lineOffset = 7700 * value#
I can't determine the value in lineOffset so it can adjust properly to array of any size.

Here is the code:



Coding is My Kung Fu!
And My Kung Fu is better than Yours!
luskos
19
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 21st Nov 2012 14:09
Nevermind i found the solution of the problem.

lineOffset = (NumberOfLines*16 - ViewportHeight) * value#

Coding is My Kung Fu!
And My Kung Fu is better than Yours!

Login to post a reply

Server time is: 2026-07-07 19:56:57
Your offset time is: 2026-07-07 19:56:57