TTMSFNCDataGridBitmapCell.DrawControl Method
Paints the cell control from its cached bitmap in ControlRect.
API unit family: TMSFNCDataGridCell
Declaring type: TTMSFNCDataGridBitmapCell
Inherited from: TTMSFNCDataGridCell
Overloads
Overload 1
Paints the cell control from its cached bitmap in ControlRect.
procedure DrawControl(AGraphics: TTMSFNCGraphics); virtual;
virtual void __fastcall DrawControl(TTMSFNCGraphics* AGraphics);
Remarks
Nothing is painted for a control that is shown live, or while the live control is active under the mouse. During export, a control that supports vector export is exported directly into AGraphics instead of drawn as a bitmap.
Parameters
| Name | Description |
|---|---|
AGraphics |
Graphics context to paint into. |
Overload 2
Paints the bitmap in TTMSFNCDataGridCell.ControlRect using BitmapAspectRatio, BitmapStretched, BitmapCentered, and BitmapCropped.
procedure DrawControl(AGraphics: TTMSFNCGraphics); override;
virtual void __fastcall DrawControl(TTMSFNCGraphics* AGraphics);
Remarks
Bitmap is used when it is not empty; otherwise the image named BitmapName is looked up in TTMSFNCDataGridCell.BitmapContainer. Nothing is painted when neither yields an image.
Parameters
| Name | Description |
|---|---|
AGraphics |
Graphics context to paint into. |