JVCL Help:PaintEdit
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: PaintEdit function
[+] JvToolEdit.pas Functions
Search in JVCL Help
Search in all projectsSummary
Paints the edit box of an edit control.
Pascal
run\JvToolEdit.pas
functionPaintEdit(Editor: TCustomEdit; constAText: string; AAlignment: TAlignment; PopupVisible: Boolean; DisabledTextColor: TColor; StandardPaint: Boolean; varACanvas: TControlCanvas; varMsg: TWMPaint): Boolean;
Parameters
Parameters | Description |
Editor: TCustomEdit | The edit control. |
const AText: string | The text for the edit box. |
AAlignment: TAlignment | Alignment of the text in the edit box. |
PopupVisible: Boolean | Indicates whether a pop-up window associated with the edit control is visible. |
DisabledTextColor: TColor | The color of the text when the control isn't enabled. |
StandardPaint: Boolean | Specifies whether to use the standard paint method of the control. |
var ACanvas: TControlCanvas | The canvas to use. |
var Msg: TWMPaint | The received Windows Paint message. |
Description
Call PaintEdit to paint the edit box of an edit control.
If parameter ACanvas is nil then ACanvas is set to a newly created TCanvas object. It is the responsibility of the caller of PaintEdit to free that object.
PaintEdit returns the value of parameter StandardPaint. If StandardPaint is set to true, then only some initialization is done but no painting; thus, in this case the caller should call the standard paint method of the control.
See Also
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page