AppSupportsHiDPI

From Xojo Documentation

Constant As Boolean

anBoolean = AppSupportsHiDPI

New in 2018r4

Indicates if the app is built with Supports HiDPI property set to ON.

Usage

result = AppSupportsHiDPI

Part Type Description
result Boolean Returns True if you are compiling or running an app with Supports HiDPI property set to ON.

Sample Code

Use AppSupportsHiDPI to isolate code specific for when Supports HiDPI is ON or OFF.

#If AppSupportsHiDPI Then
// Load a different image
#Endif

See Also

DebugBuild, XojoVersion, XojoVersionString, TargetBigEndian, TargetCocoa, TargetLinux, TargetLittleEndian, TargetMachO, TargetMacOS, TargetWeb, TargetWindows, TargetX86 constants; #If...#Endif statement; ConsoleApplication, ServiceApplication, WebApplication, iOSApplication classes; Application.SupportsHiDPI property.