Vcl.StdCtrls.TCustomLabel.DoDrawText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DoDrawText(var Rect: TRect; Flags: Longint); dynamic;

C++

DYNAMIC void __fastcall DoDrawText(System::Types::TRect &Rect, int Flags);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomLabel

Description

Renders the text in the client area.

When the label needs to draw itself, DoDrawText is implicitly called. DoDrawText uses the Windows API function, DrawText, to render the caption in the client area.

The first parameter, Rect, specifies the boundaries of the text within the client area. The second parameter, Flags, specifies how the text is aligned within those boundaries, how tab characters are handled, etc. See the Microsoft Windows API DrawText function for all the possible values of Flags.

Override DoDrawText to render text differently.

See Also