



Collapse All
Syntax| LONG PDFPAGE_CreateControl_Combobox ( BSTR comboboxName, LONG left, LONG top, LONG right, LONG bottom ) |
RemarksThe return value is an annotation/control identifier in document's annotations collection and can be used in AddControlToAction, CurrentAnnotationIndex.
Equivalent in new interface: IPDFDocument4::AddComboBox.
Example{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_CreateControl_Combobox('ctrl1', 10, 10, 110, 23);
PDF.PDFANNOTATION_Text := 'Text';
PDF.PDFANNOTATION_Items := '111111' + #13#10 + '222222' + #13#10 + '333333';
PDF.EndDoc;
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_CreateControl_Combobox("ctrl1", 10, 10, 110, 23);
PDF->PDFANNOTATION_Text = "Text";
PDF->PDFANNOTATION_Items = "111111\n222222\n333333";
PDF->EndDoc();
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_CreateControl_Combobox("ctrl1", 10, 10, 110, 23);
PDF.PDFANNOTATION_Text = "Text";
PDF.PDFANNOTATION_Items = "111111\n222222\n333333";
PDF.EndDoc();
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_CreateControl_Combobox "ctrl1", 10, 10, 110, 23 PDF.PDFANNOTATION_Text = "Text" PDF.PDFANNOTATION_Items = "111111" & vbCrLf & "222222" & vbCrLf & "333333" PDF.EndDoc
See Also