Detect new page added

Public forum for discussing TScaleRichView (shareware addon to TRichView providing WYSIWYG editing)
Post Reply
max_mediaworld
Posts: 4
Joined: Mon Feb 19, 2018 6:05 pm

Detect new page added

Post by max_mediaworld » Mon Feb 19, 2018 6:48 pm

Hi, I am using SRichViewEdit, and loop the database content, input them to SRichViewEdit, around 20 pages.

How can I detech new page is added? I want to add TWO lines on the top of each page, not Header. Because they are different on every page.

Any idea.

Thank you very much!

Steku
Posts: 8
Joined: Fri Dec 13, 2013 4:01 pm

Re: Detect new page added

Post by Steku » Mon Feb 19, 2018 8:05 pm

Hi,

not sure, but maybe this event can help you:
http://www.trichview.com/help-scalerich ... hanged.htm

Greetings...

max_mediaworld
Posts: 4
Joined: Mon Feb 19, 2018 6:05 pm

Re: Detect new page added

Post by max_mediaworld » Mon Feb 19, 2018 8:27 pm

Thanks!
I tried, seem it trigger with delay. After text is inputed.

Is there another way to loop all pages? Then I can insert on the top lines.

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

Re: Detect new page added

Post by Sergey Tkachenko » Tue Feb 20, 2018 7:19 am

When you enter text, the following steps are performed
1) text is added
2) changed paragraphs are reformatted
3) if height is changed, document is repaginated

You cannot be notified about page insertion before the first step.

I am afraid I do not know a good solution for your problem, as I understand it. Any changes in a document may move automatic page breaks, including adding your two lines at the top of pages. Probably, inserting explicit page breaks may help.

Post Reply