InstallPDFlibViewerDefaultPopupMenu
Viewer actions
Description
Creates the standard action-based context menu, assigns it to Viewer.PopupMenu and returns the menu for further customisation
Syntax
Delphi
Function InstallPDFlibViewerDefaultPopupMenu(AOwner: TComponent; Viewer: TPDFlibViewer): TPopupMenu;Parameters
| AOwner | Owner of the menu and of the actions it creates; when Nil the Viewer becomes the owner |
|---|---|
| Viewer | The viewer the menu actions are bound to; when Nil the actions start unbound and can be bound later through their Viewer property |
Return values
The pop-up menu with one bound action per item: copy text, zoom in, zoom out, actual size, fit width, fit page, rotate clockwise, rotate anti-clockwise, first, prior, next and last page, save as and print, with separators between the groups
Remarks
When AOwner and Viewer are both Nil the menu has no owner, so the caller must free it
When Viewer is assigned the menu is also assigned to Viewer.PopupMenu