LONG CreateGoToPageAction ( LONG pageIndex, LONG topOffset ) |
CreateGoToPageAction creates an action for moving the view to a new destination in a PDF document. The destination page is specified by pageIndex. The vertical location is specified by topOffset, which is measured in pixels from the top of pageIndex.
The return value is an action identifier in the document's actions collection and can be used in AddControlToAction, OpenDocumentAction, PDFANNOTATION_OnBeforeFormatting, PDFANNOTATION_OnChange, PDFANNOTATION_OnKeyPress, PDFANNOTATION_OnSetFocus, PDFANNOTATION_OnLostFocus, PDFANNOTATION_OnMouseDown, PDFANNOTATION_OnMouseUp, PDFANNOTATION_OnMouseEnter, PDFANNOTATION_OnMouseExit, PDFANNOTATION_OnOtherControlChanged, PDFPAGE_SetAction, PDFANNOTATION_Action, PDFOUTLINENODE_Action.
Equivalent in new interface: IPDFDocument4::CreateGoToPageAction.
{ PDF object is supposed to be created } PDF.PDFPAGE_CreateControl_Button ('Btn1', 20, 90, 65, 105); PDF.PDFANNOTATION_Caption := 'Alert demo'; PDF.PDFANNOTATION_OnMouseUp := PDF.CreateGoToPageAction(0, 400);
// PDF object is supposed to be created PDF->PDFPAGE_CreateControl_Button("Btn1", 20, 90, 65, 105); PDF->PDFANNOTATION_Caption = "Alert demo"; PDF->PDFANNOTATION_OnMouseUp = PDF->CreateGoToPageAction(0, 400);
// PDF object is supposed to be created PDF.PDFPAGE_CreateControl_Button("Btn1", 20, 90, 65, 105); PDF.PDFANNOTATION_Caption = "Alert demo"; PDF.PDFANNOTATION_OnMouseUp = CreateGoToPageAction(0, 400);
' PDF object is supposed to be created PDF.PDFPAGE_CreateControl_Button "Btn1", 20, 90, 65, 105 PDF.PDFANNOTATION_Caption = "Alert demo" PDF.PDFANNOTATION_OnMouseUp = PDF.CreateGoToPageAction(0, 400)