JVCL Help:PaintEdit

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Paints the edit box of an edit control.

run\JvToolEdit.pas


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.

run\JvToolEdit.pas


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.

run\JvToolEdit.pas


See Also

PaintComboEdit

run\JvToolEdit.pas


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