Skip to content

XTPGridCustomDraw Enumeration

Description

Used to specify which drawing events, if any, will be executed.

Members

Member Description
xtpCustomDrawItem DrawItem event.
xtpCustomMeasureRow MeasureRow event.
xtpCustomBeforeDrawRow BeforeDrawRow event.
xtpCustomDrawPreviewItem DrawPreviewItem event.
xtpCustomMeasurePreviewItem MeasurePreviewItem event.

Remarks

The SetCustomDraw method uses the XTPGridCustomDraw flags to specify which drawing events are executed.

If all three events are executed, the order that they occur is:

  1. MeasureRow
  2. BeforeDrawRow
  3. MeasurePreviewItem
  4. DrawItem
  5. DrawPreviewItem

The MeasureRow event occurs first to calculate the height of the row. Then BeforeDrawRow occurs, followed by MeasurePreviewItem, then DrawItem. Finally, DrawPreviewItem occurs for each item in the row.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.