Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

Screen.Scale

Queries scale of screen.

Component Version macOS Windows Linux Server iOS SDK
Screenshot 9.2 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "Screen.Scale" { ; Screen ID } )   More

Parameters

Parameter Description Example Flags
Screen ID The zero based index of the screen to to target.
Default is main screen.
0 Optional

Result

Returns number or error.

Description

Queries scale of screen.
Normal screens have 1, retina screens have 2 and on iPhone some have even 3.
Windows has same scale factor for all screens, which can be fractions like 1.5.

Release notes

Blog Entries

Created 21st March 2019, last changed 20th November 2020


Screen.Left - Screen.Top

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins

Start Chat