Paint page - associated item

Public forum for discussing TScaleRichView (shareware addon to TRichView providing WYSIWYG editing)
Post Reply
Jim Knopf
Posts: 172
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

Paint page - associated item

Post by Jim Knopf » Mon Dec 04, 2017 3:13 pm

Hi Sergey,

a novel project in Patchwork contains a lot of RVF files (for each scene one) that are compiled to one ScaleRichView document to publish.

Now I want to give the possibility to the authors to let paint a picture per chapter behind the text. Chapters always starts on a new page. Basically it works fine at PaintPage event (I did it at the few first pages, the preliminaries) but ... how can I detect that a new chapter starts?
On the one side there is the loop that collects all the RVFs that should be 'filled' into the whole document. On the other side there is the PaintPage event. There I don't have any information which item belongs to the page. It would be fine to know in the PaintPage event, which item is the first of the page.
I know, it's a little elaborately and I hope you understand my problem :?

Jim Knopf
Posts: 172
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

Re: Paint page - associated item

Post by Jim Knopf » Mon Dec 04, 2017 3:50 pm

Okay, I think it's possible via GetPageStartItemNo and a reference list, built wihle looping - sorry.

Post Reply