class Entryfield
A single-line text input field on a form.
Syntax
[<oRef> =] new Entryfield(<container> [,<name expC>])
<oRef>
A variable or property—typically of <container>—in which to store a reference to the newly created Entryfield object.
<container>
The container—typically a Form object—to which you’re binding the Entryfield object.
<name expC>
An optional name for the Entryfield object. If not specified, the Entryfield class will auto-generate a name for the object.
Properties
The following tables list the properties, events, and methods of interest in the Entryfield class.
Property |
Default |
Description |
ENTRYFIELD |
Identifies the object as an instance of the Entryfield class |
|
true |
Whether the Entryfield object is surrounded by the border specified by borderStyle |
|
(ENTRYFIELD) |
Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName |
|
|
The color of the text in the Entryfield object when the object has focus |
|
WindowText |
The color of the text in the Entryfield object when the object does not have focus |
|
|
The Field object that is linked to the Entryfield object |
|
|
A text formatting function |
|
|
The maximum length of the text in the Entryfield object |
|
|
The memo editor control used when editing a memo field |
|
|
The control that mirrors the phonetic equivalent of the current value |
|
|
Formatting template |
|
true |
Whether the entryfield contents are initially selected when the Entryfield object gets focus |
|
Invalid input |
The message that is displayed when the valid event fails |
|
false |
Whether to fire the valid event even when no change has been made |
|
|
The value currently displayed in the Entryfield object
|
|
Event |
Parameters |
Description |
<char expN>, |
When a key is pressed. Return value may change or cancel keystroke. |
|
|
After the string in the Entryfield object has changed and the Entryfield object loses focus, but before onLostFocus |
|
<char expN>, |
After a key has been pressed (and the key event has fired), but before the next keypress. |
|
|
When attempting to remove focus. Must return true, or focus remains.
|
|
Method |
Parameters |
Description |
|
Copies selected text to the Windows clipboard |
|
|
Cuts selected text and to the Windows clipboard |
|
<expC> |
Simulates typed user input to the Entryfield object |
|
|
Copies text from the Windows clipboard to the current cursor position |
|
|
Opens the specified memoEditor |
|
|
Reverses the effects of the most recent cut( ), copy( ), or paste( ) action
|
The following table lists the common properties, events, and methods of the Entryfield class:
Description
Entryfield objects are the primary data display and entry component.