THPDFPage.CreateRadioButton Method
Provides the CreateRadioButton behavior for the AcroForm workflow. Use it when the surrounding API family needs explicit control over PDF objects, page content, resources, conformance, or diagnostics
Declaration
function CreateRadioButton(const GroupName, ExportValue: AnsiString; Rectangle: TRect; Selected: boolean= false; Flags: THPDFFormFieldFlags= []): THPDFAcroFormField;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
GroupName | PDF resource name, packet name, profile name, or caller-defined identifier |
ExportValue | Input used by CreateRadioButton |
Rectangle | Page area or widget rectangle where the operation is applied |
Selected | Input used by CreateRadioButton |
Flags | Input used by CreateRadioButton |
Return value
Returns a THPDFAcroFormField value
Field creation and fluent flag edits preserve exact integer masks while keeping the existing radio-group parent and child-widget flag targets
See AcroForm field flag precision for signed mask values, inheritance and native builder behavior
Usage notes
- Use this API in the AcroForm workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized
- Page-level changes affect subsequent operators on the same page; save and restore graphics state when a temporary setting should not leak