THotPDF.AddLoadedComboBox Method
Adds a new interactive combo box form control to the specified page of the loaded PDF document.
Declaration
function AddLoadedComboBox(PageIndex: Integer; const AName: AnsiString; ...): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | The index of the page where this combo box is to be placed (zero-based). |
AName | The unique name identifier for this combo box control. |
... | (Other parameters typically used to define layout boundaries and control appearance) |
Return value
Returns the reference handle or assigned internal index ID of the combo box object that has just been successfully added.
Usage notes
- 组合框允许用户从下拉列表中选择一个给定的值,或者在某些设置下自行输入文本。
- 在生成控件后,还需通过相应方法(如
AddComboOption)为其补充选项内容。