Stupid Programming Challenge
Jan Sælid
janselid at broadpark.no
Tue Nov 28 00:55:38 EST 2006
>Trevor DeVore wrote:
>ON initScrollbar
> set the thumbposition of sb "scroller" to 0
> set thumbsize of sb "scroller" to 100 * (height of group
>"master" / formattedheight of group "master")
> put formattedheight of group "master" - the height of grp
>"master" into theEndValue
> IF theEndValue > 0 THEN add the thumbsize of sb "scroller" to
>theEndValue
> ELSE put 0 into theEndValue
> set endvalue of sb "scroller" to theEndValue
>END initScrollbar
It seems that this solution creates the correct thumbsize. The other makes
it smaller than it needs to be.
Jan
More information about the use-livecode
mailing list