Skip to content

TTMSNFCWXPDFToolbar

The TTMSFNCWXPDFThumbnailList component serves as an add-on for TTMSFNCWXPDFViewer. This toolbar allows default PDF navigation capabilities as well as an option to add custom buttons.

Adding buttons

By default 9 buttons are added. It’s possible to remove/edit/add buttons through the Items property.

procedure TForm1.DoCustomEvent(Sender: TObject);
begin
 //Handle any PDF related operations here. For now,
 //just show a message:
 ShowMessage('hello world');
end;
procedure TForm1.FormCreate(Sender: TObject);
var
 itm: TTMSFNCWXPDFToolbarItem;
begin
 itm := TMSFNCWXPDFToolbar1.Items.Add;
 itm.PDFRole := trCustom;
 itm.OnCustomEvent := DoCustomEvent;
 //Load a bitmap:
 //itm.Bitmap := TTMSFNCBitmap.CreateFromResource('MyBitmap');
end;

Properties

Property name Description
Appearance Appearance settings for the items.
Items Public access to the thumbnail items.
Orientation Change the orientation between horizontal and vertical.
Viewer Assign the TTMSFNCWXPDFViewer to this property.

Events

Property name Description
OnAfterDraw Event triggered after drawing.
OnBeforeDraw Event triggered before drawing
OnItemAfterDrawBackground Event triggered after drawing the item background.
OnItemAfterDrawContent Event triggered after drawing the item content.
OnItemAfterDrawText Event triggered after drawing the item text.
OnItemBeforeDrawBackground Event triggered before drawing the item background.
OnItemBeforeDrawContent Event triggered before drawing the item content.
OnItemBeforeDrawText Event triggered before drawing the item text.
OnItemClick Event triggered when an item is clicked.
OnItemSelected Event triggered when an item is selected.