TextBox
The text box is Visual FoxPro's answer to the @...GET of old. It lets you enter any alphanumeric data, and can store it as any data type.
Property |
Value |
Purpose |
Character |
Contains a string of formatting codes to be applied to the entire text box contents. |
|
Logical |
Determines whether selected text keeps its highlight when focus moves to another control. |
|
Character |
Contains a string of format characters that specify a template for the input value. |
|
Numeric |
Specifies the size of the margin around the entire interior of the text box. |
|
Character |
Specifies the name of a window to be used for expanding the text, if the ControlSource is a memo field. Backward compatibility only. |
|
Logical |
Supposed to specify whether the MemoWindow opens automatically when focus lands on the text box. Doesn't. Backward (and badly implemented) compatibility only. |
|
Character |
Specifies a character to display instead of the user's input. Allows text boxes to be used for input of passwords. |
|
Logical |
Determines whether the text in the text box is highlighted when the user tabs into it. Has no effect when the user clicks to get in. |
|
Numeric |
Length and starting position of the currently selected text. |
|
Character |
Currently selected text. |
|
Character |
Contains a character representation of the value of the text box with no formatting. |
Event |
Purpose |
The user pressed a key while focus was in the text box. |
Example |
* The class here is designed for collecting * US and Canadian phone numbers. DEFINE CLASS PhoneText AS TextBox Format = "R" InputMask = "(999)999-9999" ENDDEFINE |
See Also |
EditBox, Format, HideSelection, InputMask, KeyPress, Margin, MemoWindow, OpenWindow, PasswordChar, SelectOnEntry, SelLength, SelStart, SelText, Text |