SetFormFieldReadOnly

Form fields

Description

Sets the state of a field's ReadOnly flag.

The user cannot change the value of a form field if the ReadOnly flag is set.

Syntax

Delphi

function TPDFlib.SetFormFieldReadOnly(Index, ReadOnly: Integer): Integer;

ActiveX

Function PDFlib::SetFormFieldReadOnly(Index As Long, ReadOnly As Long) As Long

DLL

int DLSetFormFieldReadOnly(int InstanceID, int Index, int ReadOnly);

Parameters

IndexThe index of the form field
ReadOnly0 = Clear the field's ReadOnly flag 1 = Set the field's ReadOnly flag

Return values

0Could not find the specified form field
1The ReadOnly flag was set successfully