THFInfo

Top  Previous  Next

THFInfo is the class used for storing properties of header and footer in RichViewActions.

Unit RichViewActions

Syntax

THFInfo = class;

Hierarchy

TObject

Description

Objects of this class are returned by the following functions:

RVA_HeaderInfo

RVA_FooterInfo

This class has the following properties.

Text: String – text displayed in header/footer. This text may contain the following codes:

&p – index of the current page (counted from TRVAControlPanel.FirstPageNumber);

&P – count of pages;

&d – current date (DateToStr)

&t – current time (DateTimeToString(..., ShortTimeFormat, Time))

&& – '&' character.

Default value: '' (empty string) for footer, '- &p -' for header.

Alignment: TAlignment – horizontal alignment of text. Default value: taCenter.

PrintOnFirstPage: Boolean – specifies whether the header/footer is printed on the first page. Default value: True.

Font: TFont – font for printing text. Default value: Arial, 10.

 

RichViewActions print header and footer by assigning a temporal handler of TRVPrint.OnPagePrepaint event. If TRVPrint component (specified in TRVAControlPanel.RVPrint) already has this event assigned, the temporal event handler calls the old handler before drawing text.


RichView © Sergey Tkachenko