SyntaxColoring.SetAddFindbars
-----------------------------

Sets whether the plugin adds find bars.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SyntaxColoring](component_SyntaxColoring.md) | [8.0](newinversion80.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "SyntaxColoring.SetAddFindbars"; Value ) 

**MBS**( **"SyntaxColoring.SetAddFindbars";** /\* Sets whether the plugin adds find bars. \*/  
**$Value**) /\* The new setting. Can be 1 or 0.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new setting. Can be 1 or 0. | 1 |

### Result

Returns OK or error.

### Description

Sets whether the plugin adds find bars.  
The plugin watches Command-F and if you are focussed on a scrollable text view, we can show the find bar from macOS. That’s a standard feature of macOS and we just enable it.   
  
It can be that FileMaker does not draw everything perfectly as we add a control to the view hierarchy. Also the find bar is probably not designed to be running in a modal dialog. Still it is helpful.  
  
Keyboard Combinations:  
  
| Command-Option-R | Show/Hide ruler |
|---|---|
| Command-Option-I | Show/Hide invisible characters |
| Command-F | Show find panel |
| Command-Shift-F | Show find panel go to replace field |
| Command-G | Continue find |
| Command-Shift-G | Find previous match |
| Command-\[ | Shift text selection to left |
| Command-\] | Shift text selection to right |
| Command-Option-C | Copy text with styles. |

  
This setting can be set via the preferences dialog, too.  
  
With version 16.1 the custom script search will find things inside the custom functions.  
### Examples

Turn on find bars in a script:

 Set Variable \[$r ; Value: MBS ( "SyntaxColoring.SetAddFindbars"; 1 )\]  
### See also

- [SyntaxColoring.GetAddFindbars](SyntaxColoringGetAddFindbars.md)

### Release notes

- **Version 8.0**
    - Added [SyntaxColoring.GetAddFindbars](http://www.mbsplugins.eu/SyntaxColoringGetAddFindbars.shtml) and [SyntaxColoring.SetAddFindbars](http://www.mbsplugins.eu/SyntaxColoringSetAddFindbars.shtml) function.

### Blog Entries

- [Goodies 6: Search and replace in calculations](https://www.monkeybreadsoftware.com/filemaker/SyntaxColoring/06-Searchandreplaceincalculations.shtml)
- [MBS FileMaker Plugin, version 7.6pr5](https://www.mbsplugins.de/archive/2017-12-22/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 21st December 2017 , last changed 3th March 2026

  
[SyntaxColoring.ScriptSearchButton.SetEnabled](SyntaxColoringScriptSearchButtonSetEnabled.md) - [SyntaxColoring.SetCodeFoldingEnabled](SyntaxColoringSetCodeFoldingEnabled.md)

[HTML Version](SyntaxColoringSetAddFindbars.shtml)