THotPDF.SetFormFieldTooltip Method
メソッドの要約: THotPDF.SetFormFieldTooltip Method
宣言
procedure SetFormFieldTooltip(const FieldName, Value: AnsiString);
ユニット
HPDFDoc
パラメータ
| 名前 | 目的 |
|---|---|
FieldName | Existing AcroForm field name to find in the generated field list |
Value | Text written to the field dictionary as the /TU user hint |
使用上の注意
- Call this method after creating the target field and before EndDoc
- The method is useful when code uses THPDFPage.AddTextField, AddCheckBox, AddRadioButton, AddComboBox, or AddListBox instead of the wrapper-returning Create... helpers
- For wrapper-based code, use THPDFAcroFormField.SetTooltip to configure the field directly from the returned wrapper
- An unknown field name raises the same field lookup exception used by the form-field additional-action helpers
Example
HPDF.BeginDoc;
HPDF.AddPage;
HPDF.CurrentPage.AddTextField('CustomerName', '', Rect(50, 100, 250, 120));
HPDF.SetFormFieldTooltip('CustomerName', 'Customer name');
HPDF.EndDoc;
Related API
- AcroFormSupport
- THotPDFSetFormFieldAdditionalActionMethod
- THotPDFFormFieldActionConvenienceMethods