From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Constant As Boolean

aBoolean = AppSupportsHiDPI

New in 2018r4

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


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

See Also

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