eDocEngine VCL Professional Help » Symbol Reference » Namespaces of Helper Classes » gtExPDFEng Namespace » TgtPDFFormTextField Class
Gnostice eDocEngine VCL Developer Guide
|
This class represents a text box form field.
public TgtPDFFormTextField = class(TgtPDFFormField);
public: class TgtPDFFormTextField : public TgtPDFFormField;
gtExPDFEng
procedure TForm1.Demo_TgtPDFFormTextField; var gtPDFFormTextField1, gtPDFFormTextField2: TgtPDFFormTextField; gtPDFFormPushButton1: TgtPDFFormPushButton; gtPDFEngine1: TgtPDFEngine; begin gtPDFEngine1 := TgtPDFEngine.Create(Nil); // Create a text box form field gtPDFFormTextField1 := TgtPDFFormTextField.Create; gtPDFFormTextField1.Rect := gtRect(1, 1, 3, 1.2); gtPDFFormTextField1.FieldName := 'tfUserName'; gtPDFFormTextField1.IsMultiline := True; gtPDFFormTextField1.IsDoNotSpellCheck := True; gtPDFFormTextField1.MaxLength := 10; gtPDFFormTextField1.HAlignment := taCenter; // Create another text box form field gtPDFFormTextField2 := TgtPDFFormTextField.Create; gtPDFFormTextField2.Rect := gtRect(1, 2, 3, 2.2); gtPDFFormTextField2.FieldName := 'tfPassword'; gtPDFFormTextField2.IsMultiline := False; gtPDFFormTextField2.IsPassword := True; gtPDFFormTextField2.MaxLength := 15; // Create a push button form field gtPDFFormPushButton1 := TgtPDFFormPushButton.Create; gtPDFFormPushButton1.Rect := gtRect(1, 3, 2, 3.3); gtPDFFormPushButton1.FieldName := 'pbSubmit'; gtPDFFormPushButton1.BorderColor := clGray; gtPDFFormPushButton1.NormalCaption := 'Submit Order'; gtPDFFormPushButton1.RolloverCaption := 'Submit Order'; gtPDFFormPushButton1.DownCaption := 'Submit Order'; gtPDFFormPushButton1.SubmitURL := 'http://www.gnostice.com/newsletters/demos/200804/forms_test.asp'; gtPDFFormPushButton1.Action := pbaSubmit; with gtPDFEngine1 do begin Preferences.ShowSetupDialog := False; Preferences.OpenAfterCreate := True; FileName := 'text_formfield.pdf'; BeginDoc; TextOut(1, 0.8, 'Enter username'); TextOut(1, 1.8, 'Enter password'); // Add the form fields to current page AddFormItem(gtPDFFormTextField1); AddFormItem(gtPDFFormTextField2); AddFormItem(gtPDFFormPushButton1); EndDoc; end; end;
|
Name |
Description |
![]() |
Specifies background color of the form field. | |
![]() |
Specifies border color of the form field. | |
![]() |
Specifies name of the form field. | |
![]() |
Specifies font used to display the contents of the form field. | |
![]() |
Specifies text alignment inside the text box. | |
![]() |
Specifies whether the form field has a border. | |
![]() |
Specifies whether viewer applications need not show scroll bars for the form field. | |
![]() |
Specifies whether viewer applications need not spell check the text displayed inside the form field. | |
![]() |
Specifies whether the text field is used to allow the user select a file for upload. | |
![]() |
Specifies whether overflowing text is wrapped to multiple lines. | |
![]() |
Specifies whether the form field accepts passwords. | |
![]() |
Specifies maximum number of characters that can be entered in the form field. | |
![]() |
Specifies settings applicable to the form field. | |
![]() |
Specifies location on the page where the form field is displayed. | |
![]() |
Specifies value of the form field. |