You are here: Symbol Reference > JSLabel Namespace > Classes > TJSCustomLabel Class > TJSCustomLabel Methods > TJSCustomLabel.DoDrawText Method
LMD DialogPack
ContentsIndexHome
PreviousUpNext
TJSCustomLabel.DoDrawText Method

Renders the text in the client area.

Pascal
procedure DoDrawText(var ARect: TRect; AFlags: Longint); virtual;

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.

Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.
What do you think about this topic? Send feedback!