Vscroll Property of a field that is scrolled to the end
Mark Smith
mark at maseurope.net
Sun Jul 6 19:28:20 EDT 2008
This doesn't look to 'hacky' to me - maybe you could use both exit
conditions in the 'until' and I'm not sure you need to to do the
calculation - using just 'the formattedheight' seems to work fine:
repeat until (the vscroll of fld "Song" = the formattedHeight of fld
"Song") or the mouseclick
though this doesn't improve the functionality at all - the
fomattedHeight is a reliable property, so it seems like a good
approach...
Best,
Mark
On 6 Jul 2008, at 20:58, Sivakatirswami wrote:
>
> on scrollsong
> put 1 into tSongScroll
> put (the formattedheight of fld "song"-the height of fld "song"-
> 5) into tEnd
> REPEAT until the vscroll of fld "Song" = tEnd
>
> set the vscroll of fld "song" to tSongScroll
> put tSongScroll +1 into tSongScroll
> IF the mouseclick THEN exit repeat
> wait 5 milliseconds
> END repeat
> end scrollsong
>
> it feels like a bit of a hack....when I could be use some actual
> property.
>
>
> skts
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list