scroll browser widget via script?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

scroll browser widget via script?

Trevor DeVore via use-livecode
Hi all,

can we (v)scroll a browser widget via scipt?
Did not find a clue/property in the dictionary.


Best

Klaus
--
Klaus Major
https://www.major-k.de
[hidden email]


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: scroll browser widget via script?

Trevor DeVore via use-livecode
> 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.
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"
-- 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

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: scroll browser widget via script?

Trevor DeVore via use-livecode
Hello Hermann,

> Am 29.10.2019 um 22:45 schrieb hh via use-livecode <[hidden email]>:
>
>> 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
[hidden email]


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode