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

TListItem.DisplayRectSubItem

Gets the the display rectangle coordinates for a region in the specified sub-item on its list view control.

Declaration

Source position: comctrls.pp line 1063

public function TListItem.DisplayRectSubItem(

  subItem: Integer;

  Code: TDisplayCode

):TRect;

Description

DisplayRectSubItem calls methods in the widgetset class to get the TRect instance with the coordinates for the sub-item region in Code. Code can contain one of the values from the TDisplayCode type, including:

drBounds
Bounds for the sub-item.
drIcon
Width and height for the icon on the sub-item.
drLabel
Text metrics for the label or caption on the sub-item.
drSelectBounds
Bounds for the selection rectangle for the sub-item on the list view control.

SubItem contains the ordinal position in SubItems property with the text for the sub-item.

Remark: DisplayRectSubItem is not used in the current LCL implementation (2.2.0).

Version 3.2 Generated 2024-02-25 Home