Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

Webview.Scrollbar.set

Scrolls to the given coordinates.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Webview 5.0 Yes No No No No

MBS( "Webview.Scrollbar.set"; WebViewerRef; X; Y )

Parameters

Parameter Description Example value
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 than adjust if needed with this function to scroll to the right position in your web viewer.

Not supported for WebKit 2.x (FileMaker 16 Mac).

See also

Example Databases


Webview.Scrollbar.getVerticalPosition   -   Webview.SelectAll

Feedback: Report problem or ask question.




Links
MBS Xojo blog