[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Handler for special painting of an item (in owner-draw mode).
Source position: stdctrls.pp line 398
protected property TCustomComboBox.OnDrawItem : TDrawItemEvent |
OnDrawItem is a TDrawItemEvent property which contains an event handler used to draw an item in the drop-down list for the control. OnDrawItem is used when Style contains one of the owner-drawn values. See TComboBoxStyle for more information about the owner-drawn styles available.
OnDrawItem is signalled (when assigned) from the DrawItem method. The event handler is responsible for all drawing operations needed to render the specified list item. This can include the text and any images or overlays drawn for the list item. Use the Canvas property to render the list item to the specified coordinate rectangle.
If OnDrawItem is not assigned, an internal default drawing routine is called to render the list item. It handles filling the canvas rectangle with the background for the item, and drawing the item text using the style, layout, and alignment defined in the control.
|
Draws a list item, using the OnDrawItem handler (when assigned). |
|
|
Controls the appearance and behavior for the combo-box. |
|
|
Provides access to the drawing surface for the control. |
|
|
Specifies an event handler used to paint a single item in an owner-drawn list box or combo-box. |
|
|
The display style available for combo-box controls. |
Version 3.2 | Generated 2024-02-25 | Home |