trichview.support
more about header & footer ... |
Author |
Message |
Jan Weing�rtner |
Posted: 03/15/2002 22:32:52 Hi. The Header-and-Footer topic seems to be interesting for many programmers - for me too. (For me this is more important than bullets and numbering). Features like page number automation in headers/footers would be IMHO not really helpfull. At the moment we are *drawing* headers and footers by using the OnPagePrepaint event and TCanvas functions. It's a difficult work to calculate the correct zoom values for text an pictures (it's fun, but it takes a lot of time) and the appearance often is not 100% like the other RichView text. The advantage is, the flexibility. We can print out what ever we want. The new header/footer feature (in my dreams) consists of two parts: 1) A rectangle set (like a table with 1 column and 3 rows) - header rectangle - rich view area (already defined by the margin values) - footer rectangle 2) 2 new events (header/footer) OnGetHeader(TCustomRichView* headerRV, int pageNo) { RV->AddText( "Page " + IntToStr(pageNo), ...); ///... or whatever } (And it is nevertheless possible to use the OnPagePrepaint event.) Best regards, Jan |
Powered by ABC Amber Outlook Express Converter