NewChildFormField
Pola formularzy
Opis
Dodaje nowe pole formularza do wybranej strony jako element potomny innego pola
Składnia
Delphi
Function TPDFlib.NewChildFormField(Index: Integer; Const Title: WideString; FieldType: Integer): Integer;
ActiveX
Function PDFlib::NewChildFormField(Index As Long, Title As String, FieldType As Long) As Long
DLL
int DLNewChildFormField(int InstanceID, int Index, const wchar_t* Title, int FieldType);
int DLNewChildFormFieldA(int InstanceID, int Index, const char* Title, int FieldType);
Parametry
| Index | Indeks pola nadrzędnego |
|---|---|
| Title | Tytuł nowego pola formularza. Tytuł nie może zawierać znaku kropki "." |
| FieldType | Typ tworzonego pola: 1 = Text 2 = Pushbutton 3 = Checkbox 4 = Radiobutton 5 = Choice 6 = Signature 7 = Parent |
Wartości zwracane
| 0 | Nie można utworzyć nowego pola formularza |
|---|---|
| Non-zero | Pole formularza zostało pomyślnie utworzone, a ta wartość jest indeksem nowego pola |