Vcl.Themes.TCustomStyleServices.DrawText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DrawText(DC: HDC; Details: TThemedElementDetails; const S: string;  R: TRect; Flags, Flags2: Cardinal): Boolean; overload; inline; deprecated 'Use DrawText with TTextFormat';
function DrawText(DC: HDC; Details: TThemedElementDetails;  const S: string; var R: TRect; Flags: TTextFormat; Color: TColor = clNone): Boolean; overload;
function DrawText(DC: HDC; Details: TThemedElementDetails;  const S: string; var R: TRect; Flags: TTextFormat; Options: TStyleTextOptions): Boolean; overload;

C++

bool __fastcall DrawText _DEPRECATED_ATTRIBUTE1("Use DrawText with TTextFormat") (HDC DC, const TThemedElementDetails &Details, const System::UnicodeString S, const System::Types::TRect &R, unsigned Flags, unsigned Flags2)/* overload */;
bool __fastcall DrawText(HDC DC, const TThemedElementDetails &Details, const System::UnicodeString S, System::Types::TRect &R, Vcl::Graphics::TTextFormat Flags, System::Uitypes::TColor Color = (System::Uitypes::TColor)(0x1fffffff))/* overload */;
bool __fastcall DrawText(HDC DC, const TThemedElementDetails &Details, const System::UnicodeString S, System::Types::TRect &R, Vcl::Graphics::TTextFormat Flags, const TStyleTextOptions &Options)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
Vcl.Themes.pas
Vcl.Themes.hpp
Vcl.Themes TCustomStyleServices


Description

Draws text over an element, using the current style.

Call DrawText to draw the S string in the rectangle specified by R. The S string has the format and additional options indicated by the Flags and Options parameters. The drawing is performed with the settings of the current style.

Note: The first overload of this function is deprecated. Use the following two overloads that use TTextFormat to specify the text formatting.

See Also