WPCubed Product Support

TWPPreview Thumbnail Layout

Hello Julian,

What event of TTWPPreview do I use so that when I click on a thumbnail image the attached TWpRichText shows the page ?

Regards,

Paul Cunningham

#1 ♥ 0
3.4k Views 2 users read 1 min
support

Hi,

OnClick would do it.

procedure TWPTBXForm.WPPreview1Click(Sender: TWPCustomRtfEdit; PageNo, X, Y: Integer; var Ignore: Boolean);
begin
if PageNo >= 0 then WPRichText1.PageNumber := PageNo;
WPPreview1.Memo.SelectedPage := PageNo;
end;

#2 ♥ 0
This category is archived. No new posts are possible.