Sign in Join
FPDoc Onlineexperiment

TWidgetSet.SetMapMode function

Member of TWidgetSetpublicIn unit InterfaceBase

Sets the mapping mode of an device context.

Declaration

pascal
function SetMapMode(DC: HDC; fnMapMode: Integer): Integer; virtual

Arguments

DC

The device context.

fnMapMode

The new mapping mode.

Function result

The old mapping mode.

Description

The mapping mode specifies the correspondence between logical and physical units. Supported modes are:

MM_ANISOTROPIC
Arbitrary mapping
MM_HIENGLISH
0.001 inch
MM_HIMETRIC
0.01 mm
MM_ISOTROPIC
Arbitrary mapping, same for X and Y axis
MM_LOENGLISH
0.01 inch
MM_LOMETRIC
0.1 mm
MM_TEXT
1 device pixel
MM_TWIPS
1/20th point (twip, 1/1440 inch)

Positive X is right, except for (an)isotropic mappings. Positive Y is up, except for (an)isotropic and MM_TEXT mappings.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.