SetFormFieldTextFlags
Form fields
Description
Sets various options for text form fields.
Syntax
Delphi
function TPDFlib.SetFormFieldTextFlags(Index, Multiline, Password, FileSelect, DoNotSpellCheck, DoNotScroll: Integer): Integer;ActiveX
Function PDFlib::SetFormFieldTextFlags(Index As Long, Multiline As Long, Password As Long, FileSelect As Long, DoNotSpellCheck As Long, DoNotScroll As Long) As LongDLL
int DLSetFormFieldTextFlags(int InstanceID, int Index, int Multiline, int Password, int FileSelect, int DoNotSpellCheck, int DoNotScroll);Parameters
| Index | The index of the form field to work with. The first form field has an index of 1. |
|---|---|
| Multiline | 0 = Field's text is restricted to one line 1 = Field may contain multiple lines of text 0 = The field is not a password field 1 = The field is a password, characters will be displayed as asterisks |
| Password | 0 = The field is not a file select field 1 = The contents of the file specified by the text entered in this field will be submitted as the value of the form field |
| FileSelect | |
| DoNotSpellCheck | 0 = The field will be spell checked 1 = The field will not be spell checked |
| DoNotScroll | 0 = Field can scroll 1 = Field is not allowed to scroll |
Return values
| 0 | The form field could not be found The options for the text field were set successfully |
|---|---|
| 1 | int DoNotScroll); |