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: 138
Joined: Mon Jan 14, 2019 5:20 pm

Scroll of browser widget

Post by hrcap » Mon Mar 10, 2025 6:57 pm

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: 161
Joined: Tue Feb 23, 2010 10:53 pm

Re: Scroll of browser widget

Post by bobcole » Tue Mar 11, 2025 4:03 pm

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: 138
Joined: Mon Jan 14, 2019 5:20 pm

Re: Scroll of browser widget

Post by hrcap » Tue Mar 11, 2025 11:22 pm

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: 161
Joined: Tue Feb 23, 2010 10:53 pm

Re: Scroll of browser widget

Post by bobcole » Wed Mar 12, 2025 12:15 am

Oops. You are correct. Sorry about that; I just saw the association with the browser not realizing the effect it had.
Bob

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

Re: Scroll of browser widget

Post by Klaus » Wed Mar 12, 2025 11:01 am

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: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Scroll of browser widget

Post by Klaus » Wed Mar 12, 2025 11:07 am

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

Post Reply