[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Handler invoked when the height for an item is needed.
Source position: stdctrls.pp line 657
public property TCustomListBox.OnMeasureItem : TMeasureItemEvent |
OnMeasureItem is a TMeasureItemEvent property with the event handler signalled to get the height for specified item in the list box control. OnMeasureItem is signalled (when assigned) from the MeasureItem method, and occurs when the LM_MeasureItem message is handled for the control. MeasureItem provides the arguments passed to the event handler, while the message handler stores the calculated height in ItemHeight when it is not 0 (zero).
An application must implement an object procedure to respond to the event notification. Index contains the position in Items with the string to examine in the event handler. On entry, TheHeight contains the text height for the current Font calculated using the Canvas in the control. The value in TheHeight can be updated with the value derived in the event handler.
|
Gets the height for an item in the list. |
|
|
The default height for an item displayed in the list. |
|
|
Appearance of the list box (standard, owner-draw fixed, or owner-draw variable). |
|
|
The font to be used for text display in this control. |
|
|
Drawing surface where the control is drawn. |
|
|
Specifies an event handler used to get the Height for a single item in an owner-drawn list box or combo-box. |
Version 3.2 | Generated 2024-02-25 | Home |