THPDFPage.CreateRadioButton Method
Method summary: THPDFPage.CreateRadioButton Method
Declaration
function CreateRadioButton(const GroupName, ExportValue: AnsiString; Rectangle: TRect; Selected: boolean = false): THPDFAcroFormField;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
GroupName | Radio button group name |
ExportValue | Value exported when this option is selected |
Rectangle | Widget rectangle on the page |
Selected | Initial selected state |
Flags | Input supplied to CreateRadioButton |
Return value
THPDFAcroFormField wrapper for the created radio button
Field creation and fluent flag edits preserve exact integer masks whilst keeping the existing radio-group parent and child-widget flag targets
See AcroForm field flag precision for signed mask values, inheritance and native builder behaviour
Usage notes
- Use this API in the AcroForm workflow before the affected page, resource, field or catalogue object is finalised
- Keep object names, field names, resource names and returned handles stable until the document is finalised
- Use THPDFPage.AddRadioButton for the simpler one-call workflow