DPIChanged

Description

Occurs when DPI changes.

Syntax

DPIChanged (int olddpi, int newdpi)

Event ID

Event ID

Objects

pbm_dpichanged

Window objects


Arguments

Argument

Description

olddpi

The original DPI value.

newdpi

The new DPI value.


Return Values

None

Usage

Use this event to handle DPI change notifications at runtime, so you can adjust layouts, fonts, or graphics immediately when the system DPI changes.

This event will be fired only when the application is compiled and run as an executable file. For more information, refer to the section called “Enabling DPI Awareness”.