Class: TEgDBGridEx
property CornerImageIndex: Integer default -1;
Index into Images of the
image drawn in the fixed corner cell - the title-row cell above the
indicator column (ACol = 0, only visible with
dgIndicator in Options), otherwise left blank
apart from its background fill. -1 (the default) means “no
image”.
This cell has no associated TColumn (there is nothing to
sort or click by title), so unlike TEgColumn.TitleImageIndex
there is no per-column equivalent - the property lives on the grid
itself.
Unlike DrawTitleCell’s own title image (skipped entirely
when it does not fit), the corner image always draws: when it is larger
than the available space it is shrunk to fit, aspect ratio preserved and
never enlarged past its native size - the same shrink-only convention
used everywhere else in this unit - instead of being skipped. No margin
is reserved around it, so a well-fitted image can touch the cell’s own
edges. Drawn via the same ImageList/icon-drawing mechanism
the title image uses, so transparency composites correctly against a
themed background. See CornerImageAlignment
to control its position within the cell, and OnCornerImageClick
to react to a click on it.