[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'InterfaceBase' (#lcl)

TWidgetSet.SetMapMode

Sets the mapping mode of an device context.

Declaration

Source position: winapih.inc line 247

public function TWidgetSet.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:

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

See also

TWidgetSet.GetMapMode

  

Returns the mapping mode of an device context.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.