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

IndexIndeks pola nadrzędnego
TitleTytuł nowego pola formularza. Tytuł nie może zawierać znaku kropki "."
FieldTypeTyp tworzonego pola: 1 = Text 2 = Pushbutton 3 = Checkbox 4 = Radiobutton 5 = Choice 6 = Signature 7 = Parent

Wartości zwracane

0Nie można utworzyć nowego pola formularza
Non-zeroPole formularza zostało pomyślnie utworzone, a ta wartość jest indeksem nowego pola