THotPDF.SetFormFieldTooltip Method
Sažetak metode: THotPDF.SetFormFieldTooltip Method
Deklaracija
procedure SetFormFieldTooltip(const FieldName, Value: AnsiString);
Unit
HPDFDoc
Parametri
| Name | Svrha |
|---|---|
FieldName | Existing AcroForm field name to find in the generated field list |
Value | Text written to the field dictionary as the /TU user hint |
Napomene za uporabu
- 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