scroll browser widget via script?

Klaus major-k klaus at major-k.de
Tue Oct 29 17:57:45 EDT 2019


Hello Hermann,

> Am 29.10.2019 um 22:45 schrieb hh via use-livecode <use-livecode at lists.runrev.com>:
> 
>> Klaus M. wrote:
>> can we (v)scroll a browser widget via script?
> 
> Of course by setting anchors and jumping via URL to there.
> But you don't mean that, so:
> No.

OK, thanks.

> But we have a forum. From post "Scroll my widget (='.'=)"
> http://forums.livecode.com/viewtopic.php?p=156701#p156701
> -- scrolls "to"  horizontally 0 and vertically 400 pixels
> do "window.scrollTo(0,400);" in  widget "browser"

That is great, I can even use an insanely high number to scroll to the bottom
without knowing the exact "formattedheigt" of the widget, just like with LC fields.

> -- scrolls "by" (additive) horizontally 10 and vertically 40 pixels
> do "window.scrollBy(10,40);" in widget "browser"
> 
> And your next questions:
> Widget usage example #5: Getting MouseEvents
> http://forums.livecode.com/viewtopic.php?p=154496#p154496
> 
> Widget usage example #5b: Getting MouseEvents (part2).
> http://forums.livecode.com/viewtopic.php?p=174936#p174936

I really did not want to know this (in the moment). :-)

Thanks a lot!


Best

Klaus
--
Klaus Major
https://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list