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

TThemeServices.GetDetailSizeForWindow

Gets the dimensions for a theme element on the control with the specified window handle.

Declaration

Source position: themes.pas line 481

public function TThemeServices.GetDetailSizeForWindow(

  Details: TThemedElementDetails;

  const AWindow: HWND

):TSize; virtual;

Arguments

Details

  

Identifies the element, part, and state for the requested themed element.

AWindow

  

The window handle for the control where the theme element size is used.

Function result

TSize instance with the Width and Height for the specified theme element detail.

Description

Gets the default dimensions for the specified theme element detail. Calls GetDetailSizeForPPI to get the return value for the method. -1 in the Width and Height for the TSize instance means the size for the theme element detail is not known.

Remark: The handle specified in AWindow is not used is the LCL implementation of the method. It is provided for compatibility with widgetset implementations which use the handle for DPI-aware contexts (Windows).

Version info

Added in LCL version 3.0.

See also

TThemeServices.GetDetailSizeForPPI

  

Gets the dimensions for a theme element scaled to the specified Pixels per Inch (PPI).

TThemedElementDetails

  

Record type with a theme element, part, and state values.

TThemedElement

  

Represents elements which can be themed.

TSize


Version 4.0 Generated 2025-05-03 Home