Scroll of browser widget
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Scroll of browser widget
Hi All
I am using the browser widget to View a preview of some HTML text. The browser widget has a vertical scroll bar as selected in the object inspector. Does anybody know how to retrieve the amount a.k.a.vScroll that's the browser widget has been scrolled.
... The purpose is that when refreshing the HML text I would like to re-establish the previous amount of scroll so the scroll isn't automatically set to 0.
Many Thanks
I am using the browser widget to View a preview of some HTML text. The browser widget has a vertical scroll bar as selected in the object inspector. Does anybody know how to retrieve the amount a.k.a.vScroll that's the browser widget has been scrolled.
... The purpose is that when refreshing the HML text I would like to re-establish the previous amount of scroll so the scroll isn't automatically set to 0.
Many Thanks
Re: Scroll of browser widget
Hello hrcap:
Look in the Dictionary under the term: vScrollbar
with the association: Browser
It shows the get and set commands for the Browser widget.
Untested.
FYI,
Bob
Look in the Dictionary under the term: vScrollbar
with the association: Browser
It shows the get and set commands for the Browser widget.
Untested.
FYI,
Bob
Re: Scroll of browser widget
Hi Bobcole
Thank you very much for taking the time to reply.
I believe this simply returns whether the scrollbar is set to be visible or not rather than returning the 'scrolled amount'.
Many Thanks
Thank you very much for taking the time to reply.
I believe this simply returns whether the scrollbar is set to be visible or not rather than returning the 'scrolled amount'.
Many Thanks
Re: Scroll of browser widget
Oops. You are correct. Sorry about that; I just saw the association with the browser not realizing the effect it had.
Bob
Bob
Re: Scroll of browser widget
I made a test stack and we can't definitively GET or SET the scroll (v or h) of a browser widget, which is a shame!
If we SET it, we end with a custom property of the widget with the name of, you bet, SCROLL. Big fun.
Created a bug report here:
https://quality.livecode.com/show_bug.cgi?id=24664
Best
Klaus
If we SET it, we end with a custom property of the widget with the name of, you bet, SCROLL. Big fun.

Created a bug report here:
https://quality.livecode.com/show_bug.cgi?id=24664
Best
Klaus
Re: Scroll of browser widget
Oh, just discovered that I already reported all this in 2017!
https://quality.livecode.com/show_bug.cgi?id=19453

https://quality.livecode.com/show_bug.cgi?id=19453