<< Click to display table of contents >> DrawControl, DrawButton, DrawEdit, DrawMemo, DrawPanel Functions [VCL and LCL] |
These functions create bitmap having the size of the specified control, draw image of this control into this bitmap, return this bitmap.
Unit CtrlImg.
Syntax
function DrawControl(ctrl: TControl): TBitmap;
Also
function DrawButton(ctrl: TButton): TBitmap;
function DrawEdit(ctrl: TEdit): TBitmap;
function DrawMemo(ctrl: TMemo): TBitmap;
function DrawPanel(ctrl: TPanel): TBitmap;
DrawControl has the functionality of all other functions of this group.
TRVPrint use these functions for default printing of inserted controls, see OnPrintComponent event.