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

TImageListHelper.ResolutionForControl

Provides access to an image resolution with the specified width scaled to the display density for a control.

Declaration

Source position: controls.pp line 402

public property TImageListHelper.ResolutionForControl[AImageWidth: Integer,AControl: TControl] : TScaledImageListResolution
  read GetResolutionForControl;

Description

ResolutionForControl is a read-only TScaledImageListResolution property which provides access to a scaled image resolution suitable for the control in AControl. AImageWidth contains the image width requested from the multi-resolution image list. AControl contains the TControl instance which provides the display density (PPI) and the scaling factor used to generate the scaled image resolution.

See also

TScaledImageListResolution

  

Implements a scaled image resolution (size).

TControl

  

The base class for visible controls.

TControlCanvas

  

Base class which provides a canvas property used in graphic controls.


Version 4.0 Generated 2025-05-03 Home