Scroll of browser widget

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
hrcap
Posts: 141
Joined: Mon Jan 14, 2019 5:20 pm

Scroll of browser widget

Post by hrcap »

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
bobcole
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 175
Joined: Tue Feb 23, 2010 10:53 pm

Re: Scroll of browser widget

Post by bobcole »

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.
Screenshot 2025-03-11 at 10.00.00 AM.png
Untested.
FYI,
Bob
hrcap
Posts: 141
Joined: Mon Jan 14, 2019 5:20 pm

Re: Scroll of browser widget

Post by hrcap »

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
bobcole
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 175
Joined: Tue Feb 23, 2010 10:53 pm

Re: Scroll of browser widget

Post by bobcole »

Oops. You are correct. Sorry about that; I just saw the association with the browser not realizing the effect it had.
Bob
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Scroll of browser widget

Post by Klaus »

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. 8-)

Created a bug report here:
https://quality.livecode.com/show_bug.cgi?id=24664


Best

Klaus
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Scroll of browser widget

Post by Klaus »

Oh, just discovered that I already reported all this in 2017! 8)
https://quality.livecode.com/show_bug.cgi?id=19453
Post Reply