Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WebView.Scrollbar.set
Scrolls to the given coordinates.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WebView | 5.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "WebView.Scrollbar.set"; WebViewerRef; X; Y ) More
Parameters
Parameter | Description | Example |
---|---|---|
WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. | "web" |
X | The new X position. | 100 |
Y | The new Y position. | 100 |
Result
Returns OK or error.
Description
Scrolls to the given coordinates.You can query the position using WebView.Scrollbar.getHorizontalPosition and WebView.Scrollbar.getVerticalPosition and then adjust if needed with this function to scroll to the right position in your web viewer.
Alternative you can run JavaScript to call document.scrollingElement.scrollTo(x,y) yourself.
Examples
Scroll to top left:
Set Variable [ $r; Value: MBS( "WebView.Scrollbar.set"; "web"; 0; 0 ) ]
See also
- WebView.FindByName
- WebView.Scrollbar.getHorizontalPosition
- WebView.Scrollbar.getVerticalPosition
- Window.Scrollbar.set
Release notes
- Version 13.2
- Improved WebView.Scrollbar.getHorizontalMaximum, WebView.Scrollbar.getHorizontalPosition, WebView.Scrollbar.getVerticalMaximum, WebView.Scrollbar.getVerticalPosition and WebView.Scrollbar.set to work on macOS when the web viewer is an interactive container showing a PDF document.
- Version 8.5
- Implemented WebView.Scrollbar.set, WebView.Scrollbar.getHorizontalPosition, WebView.Scrollbar.getVerticalPosition, WebView.Scrollbar.getHorizontalMaximum and WebView.Scrollbar.getVerticalMaximum for FileMaker 16+ on Mac and also for iOS.
Blog Entries
- MBS FileMaker Plugin, version 13.2pr6
- MBS FileMaker Plugin, version 8.5pr2
- MBS Filemaker Plugin, version 5.0pr5
This function checks for a license.
Created 22nd December 2014, last changed 19th May 2021
