THotPDF.AddLoadedRadioButton Method

Adds loaded radio button data to the AcroForm workflow. The call creates or attaches the PDF-side object needed by later output, validation, signing, or page rendering steps

Declaration

function AddLoadedRadioButton(PageIndex: Integer; X1, Y1, X2, Y2: Single; const AGroupName, AExportValue: AnsiString; ASelected: boolean): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index or object index used to select an existing item
X1Input used by AddLoadedRadioButton
Y1Input used by AddLoadedRadioButton
X2Input used by AddLoadedRadioButton
Y2Input used by AddLoadedRadioButton
AGroupNamePDF resource name, packet name, profile name, or caller-defined identifier
AExportValueInput used by AddLoadedRadioButton
ASelectedInput used by AddLoadedRadioButton

Return value

Returns an Integer value

An existing radio parent's local numeric /Ff is read exactly, including unsigned high-bit tokens and the corresponding signed representation, before the new widget is attached to the same group

A mask such as $8000FFFF retains its Radio bit instead of being misclassified after floating-point rounding carries into $80010000; the original parent flag token and existing child inheritance rules remain unchanged

The original numeric fallback remains available when the numeric object has no usable integer token

See AcroForm field flag precision for bit-pattern and local lookup details

Usage notes

Related APIs