It is probably simpler to get the PdfViewer demo.
I have added the following code for filter event:
procedure TfrmMain.ImageEnMView1Filter(Sender: TObject; Index: Integer;
const Filename: string; var ShowFrame: Boolean);
var pageNrStr: string;
filter: string;
begin
filter := ',2,5,8,';
pageNrStr := ','+ExtractFilename(Filename)+',';
if not filter.Contains(pageNrStr)then
ShowFrame:= false;
end;
Please load pdf file with more as 8 pages.
On the left we can see only filtered pages - corectly!
Now try to use buttons for next, prior, last - nothing happens there.
If the controls are linked with:
ImageEnMView.AttachedImageEnView := ImageEnView;
I would expect that next, prior, first, last - are internal implemented.
Of course next, prior,first, last - should shows only the pages: 2,5,8.