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 »

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 »

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 »

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 »

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 »

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 »

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 »

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: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

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 »

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: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

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 »

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: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

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 »

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