Form Fields
Form fields turn a TXTextControl document into a form the user fills in: text fields, check boxes, combo boxes, drop-down lists and date fields. The members below insert each kind, set its items, check characters and date formats and report the user's input.
Properties
| Member | Description |
|---|---|
TXTextControl.FormFieldCheckedChar | This property sets or returns the character which is used to display a checkbox in the checked state. |
TXTextControl.FormFieldCheckedChars | This property returns possible characters which can be used to display the checkbox in the checked state. |
TXTextControl.FormFieldDate | This property sets or returns the date of a date field. |
TXTextControl.FormFieldDateFormat | This property sets or returns the format string which is used to display the date of a date field. |
TXTextControl.FormFieldDateFormats | This property returns format picture strings which can be used to format the date. |
TXTextControl.FormFieldEmptyWidth | This property sets or returns the width of a combobox, dropdown list, date field or form textfield which is used when the field is empty. |
TXTextControl.FormFieldItems | This property sets or returns the items of a combobox or dropdown list as a sequence of strings, separated through TAB (9) characters. |
TXTextControl.FormFieldUncheckedChar | This property sets or returns the character which is used to display a checkbox in the unchecked state. |
TXTextControl.FormFieldUncheckedChars | This property returns possible characters which can be used to display the checkbox in the unchecked state. |
Methods
| Member | Description |
|---|---|
TXTextControl.FormCheckBoxInsert | This method inserts a checkbox field into the document at the current text input position. |
TXTextControl.FormComboBoxInsert | This method inserts a combobox into the document at the current text input position. |
TXTextControl.FormDateFieldInsert | This method inserts a date field into the document at the current text input position. |
TXTextControl.FormDropDownListInsert | This method inserts a dropdown list into the document at the current text input position. |
TXTextControl.FormFieldDialog | This method opens a built-in dialog box to set formatting attributes for the specified form field. |
TXTextControl.FormTextFieldInsert | This method inserts a text input field for a form into the document at the current text input position. |
Events
| Member | Description |
|---|---|
TXTextControl.FormCheckStateChanged | Occurs when the check state of a checkbox has been changed. |
TXTextControl.FormDateChanged | Occurs after the date of a date formfield has been changed. |
TXTextControl.FormFieldTextChanged | Occurs after the text of a text formfield has been changed. |
TXTextControl.FormSelectedItemChanged | Occurs after the selected item of a combobox or a dropdown list has been changed. |