Get(ScreenScaleFactor)

Returns the scale factor of the screen in which the current file is open.

Format 

Get ( ScreenScaleFactor )

Parameters 

None

Data type returned 

number

Originated in version 

13.0.2

Description 

In macOS and FileMaker Go, this function returns a scale factor based on the relative pixel density of the screen; for example:

  • 1 for a standard-resolution device without a Retina display (one pixel per point)

  • 2 for a high-resolution device with a Retina display (four pixels per point)

  • 3 for a higher-resolution device with a Retina display (nine pixels per point)

In Windows, this function returns the scale factor specified in Settings.

In FileMaker WebDirect, server-side scripts, the FileMaker Data API, and Custom Web Publishing, this function returns 1.

Example 1 

Get(ScreenScaleFactor) returns 2 on iPad with Retina display.

Example 2 

Detects the screen scale factor, then goes to a layout designed for a large scale factor or goes to a standard layout.

Copy
If [Get ( ScreenScaleFactor ) = 1.5]
    Go to Layout [Invoices Factor 150%]
Else
    Go to Layout [Invoices]
End If