Window.HideScrollbars
---------------------

Hides the scrollbars in a FileMaker window.

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

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "Window.HideScrollbars"; WindowRef { ; NoResizeHandler } ) 

**MBS**( **"Window.HideScrollbars";** /\* Hides the scrollbars in a FileMaker window. \*/  
**$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 \*/   
**$NoResizeHandler**) /\* Optional; Optionally, whether to not watch for window resizing to keep scrollbars hidden even if FileMaker normally shows them. Default is 0. You can pass 1 to disable the default behavior.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| 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 |  |
| NoResizeHandler | Optionally, whether to not watch for window resizing to keep scrollbars hidden even if FileMaker normally shows them. Default is 0. You can pass 1 to disable the default behavior. | 0 | Optional |

### Result

Returns "OK" on success.

### Description

Hides the scrollbars in a FileMaker window.  
Please also use [Window.SetResizable](WindowSetResizable.md) to disable resize.  
Works fine with FileMaker 11/12 on Mac and Windows. Also works with FileMaker 10 on Windows (but not on Mac).  
Please update plugins to latest 2.7 release to have this function work in FileMaker 12.  
FileMaker may decide to show scrollbars when resizing, so please disable resizing, too.  
The plugin installs a resize handler for Mac, so we can keep scrollbars hidden in FileMaker 12 for now while resizing.  
  
Disabled for FileMaker 16, so it returns only an error.  
Deprecated.  
### Examples

Looks up window reference for the window named test and hides scrollbars there:

 MBS ("Window.HideScrollbars"; MBS ("[Window.FindByTitle](WindowFindByTitle.md)"; "test"))  
### See also

- [Window.DisableScrollbars](WindowDisableScrollbars.md)
- [Window.EnableScrollbars](WindowEnableScrollbars.md)
- [Window.FindByIndex](WindowFindByIndex.md)
- [Window.FindByTitle](WindowFindByTitle.md)
- [Window.Hide](WindowHide.md)
- [Window.SetResizable](WindowSetResizable.md)
- [Window.ShowScrollbars](WindowShowScrollbars.md)

### Blog Entries

- [MBS FileMaker Plugin, version 5.4pr6](https://www.mbsplugins.de/archive/2015-11-17/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)
- [MonkeyBread Software Releases the MBS Filemaker plug-in in version 2.4](https://www.mbsplugins.de/archive/2011-10-11/MonkeyBread_Software_Releases_/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin 2.4 release notes](https://www.mbsplugins.de/archive/2011-10-11/MBS_Filemaker_Plugin_24_releas/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.4pr9](https://www.mbsplugins.de/archive/2011-07-09/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2011, Seite 55](https://filemaker-magazin.de/neuigkeit/3506-Appetithappen-FMM_201105-06)

This function checks for a license.

Created 18th August 2014 , last changed 12nd June 2020

  
[Window.HideOverlay](WindowHideOverlay.md) - [Window.IgnoresMouseEvents](WindowIgnoresMouseEvents.md)

[HTML Version](WindowHideScrollbars.shtml)