How show the header and footer ?

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
pepealonso
Posts: 7
Joined: Tue Apr 15, 2008 6:56 pm

How show the header and footer ?

Post by pepealonso » Fri Apr 18, 2008 9:04 am

Hello

As I show the header and footer while editing a document ?

proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d » Fri Apr 18, 2008 5:21 pm

SRV does not support header and footer. It will be realized with one of new versions.

pepealonso
Posts: 7
Joined: Tue Apr 15, 2008 6:56 pm

Post by pepealonso » Mon Apr 21, 2008 10:25 am

proxy3d wrote:SRV does not support header and footer. It will be realized with one of new versions.
The approximate date of departure from this update?. You have a thought TSDBRichView?

Greetings.

proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d » Thu Apr 24, 2008 1:40 pm

Support of header and footer is planned for June.
TSDBRichView it will be implemented in May.

Crowbar
Posts: 82
Joined: Wed Oct 11, 2006 8:54 pm
Location: Germany

Post by Crowbar » Thu Aug 21, 2008 7:19 am

proxy3d wrote:Support of header and footer is planned for June. ..
Hi,
is the Support of header and footer realized in the new version of ScaleRichView?
Is it possible over an other "way" to realized Header and Footer (e.g. in the OnDraw routine)?
If so, can you give me an example code?
I test to time the trial version.

Best regards,
Crowbar

proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Post by proxy3d » Thu Aug 28, 2008 11:45 am

In following updating there will be an example how to draw the header and footer. It has demanded changes in code SRichView.
You can draw them and now in event OnPaintPage, but I would not advise. Because in following updating this procedure will become simpler. Call OnPaintPage will be changed.

Crowbar
Posts: 82
Joined: Wed Oct 11, 2006 8:54 pm
Location: Germany

Post by Crowbar » Sat Nov 08, 2008 10:27 am

Hi,
proxy3d wrote:In following updating there will be an example how to draw the header and footer. ...
It is already planned, when the next update with an example how to draw the header and footer will be available?

Best regards,
Crowbar

Sergey Tkachenko
Site Admin
Posts: 14764
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Tue Nov 11, 2008 1:44 pm

It's already implemented, with a demo, but was not uploaded yet.
We are currently working on new help file for ScaleRichView, what's why the next update is delayed.
The work is almost finished, we plan to upload the update for registered users in this week.

Crowbar
Posts: 82
Joined: Wed Oct 11, 2006 8:54 pm
Location: Germany

Post by Crowbar » Sun Nov 23, 2008 5:38 pm

Hi,
i have installed the trial-version of ScaleRichView and tested it.
The Demo "Header and Footer" is very good, but I have a question about.
Is it possible to extend this demo?

To Example with:
- multiline Footertext with the possibility of left-, right- and center alignment

That would be perfect!

Thanks and very good work,

Best regards

Sergey Tkachenko
Site Admin
Posts: 14764
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Mon Nov 24, 2008 6:29 pm

In this demo, you can draw any additional information on the page.
This demo uses Canvas.TextOut to draw a single line of text.
You can use DrawText(Canvas.Handle, ...) to draw a multiline text with alignment.

Crowbar
Posts: 82
Joined: Wed Oct 11, 2006 8:54 pm
Location: Germany

Post by Crowbar » Mon Nov 24, 2008 7:58 pm

Hi,
thank you for the information with "DrawText...", it works fine. :)

Why will with the function "Canvas.LineTo..." no horizontal line appear?
I want to achieve the following example, a footer with a horizontal line:

Image

Best regards

Sergey Tkachenko
Site Admin
Posts: 14764
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko » Tue Nov 25, 2008 1:10 pm

May be it is too narrow and disappears on preview, if zooming is too low? Did you set the proper color and width? Does it appear on paper?

Crowbar
Posts: 82
Joined: Wed Oct 11, 2006 8:54 pm
Location: Germany

Post by Crowbar » Tue Nov 25, 2008 6:22 pm

Hi,
i forgot, the "Canvas.Pen.Style" to define. :oops:

So, this works fine (draws a horizontal line in the footer):

Code: Select all

...
Canvas.Pen.Color:=clBlack;
Canvas.Pen.Width:=1;
Canvas.Pen.Style:=psSolid;  //<- ;)
Canvas.MoveTo(PR.Left +srve.LeftMargin100Pix ,PR.Bottom - H);
Canvas.LineTo(PR.Right-srve.RightMargin100Pix,PR.Bottom - H);
DrawText(Canvas.Handle, PChar(Text), Length(Text), PR, DT_center)
...
Thanks,
Best regards

Post Reply