Window.Scrollbar.getHorizontalMaximum
-------------------------------------

Queries maximum value for horizontal scrollbar.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Window](component_Window.md) | [6.2](newinversion62.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "Window.Scrollbar.getHorizontalMaximum"; WindowRef ) 

**MBS**( **"Window.Scrollbar.getHorizontalMaximum";** /\* Queries maximum value for horizontal scrollbar. \*/  
**$WindowRef**) /\* Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WindowRef | Window Reference is the unique OS level window ID. You can obtain this by using the [Window.FindByTitle](WindowFindByTitle.md) or [Window.FindByIndex](WindowFindByIndex.md) functions. Pass zero to access the frontmost window. | 0 |

### Result

Returns value or error.

### Description

Queries maximum value for horizontal scrollbar.  
Added Windows and iOS support for version 8.5.  
  
Looks like the maximum on Windows is always 65535.  
### Examples

Qurery maximum value:

 MBS ( "Window.Scrollbar.getHorizontalMaximum"; 0 )  
### See also

- [WebView.Scrollbar.getHorizontalMaximum](WebViewScrollbargetHorizontalMaximum.md)
- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.Scrollbar.getHorizontalPosition](WindowScrollbargetHorizontalPosition.md)
- [Window.Scrollbar.getVerticalMaximum](WindowScrollbargetVerticalMaximum.md)

### Release notes

- **Version 10.2**
    - Fixed bug with [Window.Scrollbar.getHorizontalMaximum](https://www.mbsplugins.eu/WindowScrollbargetHorizontalMaximum.shtml) and [Window.Scrollbar.getVerticalMaximum](https://www.mbsplugins.eu/WindowScrollbargetVerticalMaximum.shtml) functions picking wrong scroll view if you switched to layout mode.

### Example Databases

- [Window/Window Scrollbar Position](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Window/Window%20Scrollbar%20Position.shtml#1292FieldAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 10.2pr5](https://www.mbsplugins.de/archive/2020-04-27/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.2pr6](https://www.mbsplugins.de/archive/2016-04-29/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 26th April 2016 , last changed 13th November 2018

  
[Window.Scrollbar.SetScrollElasticity](WindowScrollbarSetScrollElasticity.md) - [Window.Scrollbar.getHorizontalPosition](WindowScrollbargetHorizontalPosition.md)

[HTML Version](WindowScrollbargetHorizontalMaximum.shtml)