CreatePDFlibViewerDefaultPopupMenu
Viewer actions
Description
Creates a TPopupMenu containing bound Viewer actions for copy, zoom, fit, rotate, page navigation, save and print
The menu owns every action and menu item; when AOwner is nil the target Viewer becomes the owner
Syntax
Delphi
Function CreatePDFlibViewerDefaultPopupMenu(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