This control displays information entered by the user at run time or assigned to the Text property of the control at design or run time.
NOTE: The current version of abcDB has a maximum of 40 labels, 40 textboxes, 7 dropdowns, 6 buttons, 14 checkboxes, 1 grid, 4 datepickers, 1 image, 1 scribble and 1 tab per form.
The TextBox control supports the following properties.
|
Property
Name |
Description |
|
Back Color |
Background Color |
|
Bound Field |
The Field from which this textbox will receive its data, or in other words, the field that this textbox will be ‘bound’ to. ie. The bound field property can also contain a
calculation. For example, in
an invoicing application, it might be beneficial to automatically display
the amount of tax applicable based on the net invoice amount. If the net invoice amount was
contained in a textbox with a TAG name of ~AMOUNT~, you could enter the
following in the TAX textboxes Bound Field property: |
|
Format |
This property customizes that way that the data in this textbox will be displayed. Options include PERCENTAGE, CURRENCY, and NONE. ie. If a textbox contained the number 0.99 and the
FORMAT property was set to PERCENTAGE, the value would be displayed as
99.00% ie. If a textbox contained the number 0.99 and the FORMAT property was set to CURRENCY, the value would be displayed as $0.99 |
|
Default |
This property determines the default value that will be used to populate this textbox whenever a new record is added. For example, if you have a date field, you could
automatically populate this field with the current date by entering the
following for the DEFAULT property: DATE() Alternatively, you could also set the default
property to be a simple calculation, such as the following: |
|
Enabled |
Specifies if this textbox will be enabled or disabled |
|
Font |
The FONT this textbox will use. |
|
Font Size |
The SIZE of the font this textbox will use. |
|
Font Bold |
Specifies if the font will be displayed in BOLD. |
|
Font Italic |
Specifies if the font will be displayed in ITALIC. |
|
Font Underline |
Specifies if the font will be displayed in UNDERLINE. |
|
Fore Color |
The foreground color of this textbox. |
|
Tag |
You can use the Tag property to specify or determine the string that identifies the name of a textbox. Thereafter, the contents of that textbox can be referred to elsewhere in the application using the syntax ~TAGNAME~. ie. If a textbox is bound to the CITY field of a
customers table, you could give this textbox a TAG name of CITY, which can
then be used elsewhere by using the syntax
~CITY~. |
|
Visible |
Specifies whether this textbox will be visible or invisible |
|
Height |
The height of this textbox in Twips* |
|
Width |
The width of this textbox in Twips* |
|
Left |
The horizontal location of the top-left corner of this textbox in Twips* |
|
Top |
The vertical location of the top-left corner of this textbox in Twips* |
|
Barcode? |
Specifies whether this textbox will be printed as a textbox OR as a BARCODE. (Note: This property is only valid in ‘printing’ versions of abcDB™) |
| TabPage | If a tab-control is present on the form, this property determines which 'page' of the tab this control will be located on. 0-Not on tab. |
|
Print Border? |
Specifies whether this textbox will be printed with a border or no border (Note: This property is only valid in ‘printing’ versions of abcDB™) |
The TextBox control supports the following EVENTS.
|
Event Name |
Description |
|
Got Focus |
The got-focus event fires whenever this textbox receives the focus. |
|
Lost Focus |
The lost-focus event fires whenever this textbox loses the focus. |