Skip to main content
Table of Contents

TTMSFNCUtils.IsHighDPIScale Method

Returns True if the application is running at a DPI scale greater than 100%.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Syntax

FMX.TMSFNCUtils.hppPascalC++
class function IsHighDPIScale(AOwner: TComponent = nil; ADefaultDPI: Integer = -1): Boolean;
__classmethod bool __fastcall IsHighDPIScale(System::Classes::TComponent* AOwner = (System::Classes::TComponent*)(0x0), int ADefaultDPI = 0xffffffff);

Parameters

Name Description
AOwner Optional component used to determine the monitor or form DPI context.
ADefaultDPI Baseline DPI to compare against; -1 uses the system default (96).

Returns

True when the DPI scale is greater than 1.0; otherwise False.