Set Zoom Level

Enlarges or reduces the image on the screen.

Options 

  • Lock prevents users from making changes to the zoom level. To allow users to change the zoom level, perform the script step without the Lock option.

  • Zoom In enlarges the screen image by one zoom level.

  • Zoom Out reduces the screen image by one zoom level.

  • Reduction values: 100%, 75%, 50%, or 25%.

  • Enlargement values: 150%, 200%, 300%, or 400%.

  • Custom allows you to specify a zoom level by calculation. Enter a numeric expression for an integer value from 25 to 400 (representing 25% to 400%).

Compatibility 

Product Supported
FileMaker Pro Yes
FileMaker Go Partial
FileMaker WebDirect No
FileMaker Server No
FileMaker Cloud No
FileMaker Data API No
Custom Web Publishing No

Originated in version 

6.0 or earlier

Description 

Use this script step to specify preset or custom zoom levels. To set a default zoom level, you can use the OnWindowOpen script trigger.

Notes 

  • For FileMaker Go, the maximum enlargement value is 200%.

  • If the value for Custom is out of range or is not an integer, the script step returns error code 5 ("Command is invalid") and the current zoom level is preserved.

Example 1 

Goes to the Invoices iPhone layout, sets the zoom level to 100%, and locks the zoom level.

Copy
Go to Layout [ "Invoices iPhone" ]
Set Zoom Level [ Lock: On ; 100% ]

Example 2 

Increases the current zoom level by 10 percentage points using the Custom option with a calculation. The nested Min and Max functions ensure the result stays within the valid range.

Copy
Set Zoom Level [ Lock: Off ; Min ( 400 ; Max ( 25 ; Get ( WindowZoomLevel ) + 10 ) )% ]