Paints the caption.
procedure PaintCaption(const ADoPaint: Boolean); overload;
Paint the caption on the provided Canvas. If the ADoPaint parameter is false, then nothing is actually painted on the provided Canvas. If ADoPaint is false, then generally the required height of the Canvas is being calculated.
PaintCaption Method