THotPDF.SetFormFieldTooltip Method
方法摘要: THotPDF.SetFormFieldTooltip Method/TU
宣告
procedure SetFormFieldTooltip(const FieldName, Value: AnsiString);
單元
HPDFDoc
參數
| 名稱 | 用途 |
|---|---|
FieldName | 要在已產生欄位清單中尋找的既有 AcroForm 欄位名稱 |
值 | 寫入欄位字典、作為 /TU 使用者提示的文字/TU user hint |
使用說明
- 請在建立目標欄位之後、EndDoc 之前呼叫此方法
EndDoc - The method is useful when code uses
THPDFPage.AddTextField、AddCheckBox、AddRadioButton、AddComboBox或AddListBox,而不是回傳包裝物件的Create... - For wrapper-based code, use
THPDFAcroFormField.SetTooltip - 未知的欄位名稱會引發與表單欄位 additional-action helper 相同的欄位查詢例外
範例
HPDF.BeginDoc;
HPDF.AddPage;
HPDF.CurrentPage.AddTextField('CustomerName', '', Rect(50, 100, 250, 120));
HPDF.SetFormFieldTooltip('CustomerName', 'Customer name');
HPDF.EndDoc;
相關 API
- AcroFormSupport
- THotPDFSetFormFieldAdditionalActionMethod
- THotPDFFormFieldActionConvenienceMethods