Table of Contents

TTMSFNCDataGridBitmapCell.DrawControl Method

Draws the embedded control bitmap or live control within the cell's control rectangle.

API unit family: TMSFNCDataGridCell Declaring type: TTMSFNCDataGridBitmapCell Inherited from: TTMSFNCDataGridCell

Overloads

Overload 1

Draws the embedded control bitmap or live control within the cell's control rectangle.

procedure DrawControl(AGraphics: TTMSFNCGraphics); virtual;

Parameters

Name Description
AGraphics The graphics context to draw into.

Overload 2

Renders the bitmap onto the supplied graphics surface, honouring BitmapAlign, BitmapStretched, BitmapAspectRatio, BitmapCentered, and BitmapCropped. Called by the grid renderer.

procedure DrawControl(AGraphics: TTMSFNCGraphics); override;

Parameters

Name Description
AGraphics Graphics surface used to render the bitmap.