trichview.com

trichview.support




Tabs via source code? (was: Re: Footer: Page number)


Return to index


Author

Message

Stefan M. Huber

Posted: 08/16/2004 18:18:34


On Mon, 16 Aug 2004 18:57:32 +0400, Sergey Tkachenko <[email protected]

wrote:


> Hi,

>

> X = (PrintAreaRect.Left+PrintAreaRect.Right-sz.cx) / 2;

> Y = PrintAreaRect.Bottom;

>

> All coordinates are in pixels, scaling is not needed.


Thanks for the reply. Scaling is need, as the interface I have for the 

preview I was asigned to write takes mm as input data. I completely 

overlooked the GetHeaderRect/GetfooterRect methods which I am currently 

usign. I have two other Richviews for a header and a footer and draw into 

the area of the footer to print the page number.


I composed the header of a table with one row and two cells, asigning a 

left justified paragraph style to the left cell and a right aligned style 

to the right one.


This is a workaround, though. I planned to do this:

1) Set one right aligned tab to the paragraph style.

2) Add a paragraph with text, one #9 character and the text that should be 

right aligend as one string.


This did not work. I did not find a way to insert a tab.


Stefan





Powered by ABC Amber Outlook Express Converter