LONG PDFPAGE_CreateControl_Button ( BSTR buttonName, LONG left, LONG top, LONG right, LONG bottom ) |
This method creates a button control with name buttonName on the current PDF page in an area bounded by the coordinates given.
The return value is an annotation/control identifier in document's annotations collection and can be used in AddControlToAction, CurrentAnnotationIndex.
Equivalent in new interface: IPDFDocument4::AddButton.
{ PDF object is supposed to be created } PDF.BeginDoc; PDF.PDFPAGE_CreateControl_Button('btn1', 10, 10, 110, 23); PDF.PDFANNOTATION_Caption := 'Caption'; PDF.EndDoc;
// PDF object is supposed to be created PDF->BeginDoc(); PDF->PDFPAGE_CreateControl_Button("btn1", 10, 10, 110, 23); PDF->PDFANNOTATION_Caption = "Caption"; PDF->EndDoc();
// PDF object is supposed to be created PDF.BeginDoc(); PDF.PDFPAGE_CreateControl_Button("btn1", 10, 10, 110, 23); PDF.PDFANNOTATION_Caption = "Caption"; PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_CreateControl_Button "btn1", 10, 10, 110, 23 PDF.PDFANNOTATION_Caption = "Caption" PDF.EndDoc