You are here: Symbol Reference > JSGraphics Namespace > Classes > TJSCaption Class > TJSCaption Methods > TJSCaption.TranslateRect Method
LMD DialogPack
ContentsIndexHome
PreviousUpNext
TJSCaption.TranslateRect Method

Transform a TRect value into the required TRect format for the TJSCaption class.

Pascal
class function TranslateRect(const ARect: TRect): TRect;

The TJSCaption class requires the ARect parameter in the PaintCaption and Create methods to have the Bottom and Right parameters to actually reflect the Height and Width of the area to be painted. 

Call TranslateRect to create the desired TRect format for the functions mentioned above.

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!