@...TEXTBOX / DEFINE TEXTBOX
Creates a TextBox Control
Standard Syntax (xBase Style):
@ <nRow> ,<nCol>
TEXTBOX <ControlName>
[ OF | PARENT <ParentWindowName> ]
[ HEIGHT <nHeight> ]
[ FIELD <FieldName> ]
[ VALUE <nValue> ]
[ READONLY ]
[ WIDTH <nWidth> ]
[ NUMERIC ] [ INPUTMASK <cMask> ]
[ FORMAT <cFormat> ] | PASSWORD ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <aBackColor> ]
[ FONTCOLOR <aFontColor> ]
[ DISABLEDBACKCOLOR <aDisabledBackColor> ]
[ DISABLEDFONTCOLOR <aDisabledFontColor> ]
[ DATE ]
[ MAXLENGTH <nInputLength> ]
[ UPPERCASE | LOWERCASE ]
[ ON GOTFOCUS <OnGotFocusProcedur> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ ON ENTER <OnEnterProcedure> | <bBlock> ]
[ RIGHTALIGN ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ HELPID <nHelpId> ]
Alternate Syntax:
DEFINE TEXTBOX <Controlname>
PARENT <ParentWindowName>
ROW <nValue>
COL <nValue>
HEIGHT <nHeight>
FIELD <FieldName>
VALUE <nValue>
READONLY <lValue>
WIDTH <nWidth>
INPUTMASK <cMask>
FORMAT <cFormat>
PASSWORD <lValue>
FONTNAME <cValue>
FONTSIZE <nValue>
FONTBOLD <lValue>
FONTITALIC <lValue>
FONTUNDERLINE <lValue>
FONTSTRIKEOUT <lValue>
TOOLTIP <cToolTipText>
BACKCOLOR <aBackColor>
FONTCOLOR <aFontColor>
DISABLEDBACKCOLOR <aDisabledBackColor>
DISABLEDFONTCOLOR <aDisabledFontColor>
DATATYPE CHARACTER | DATE | NUMERIC
MAXLENGTH <nInputLength>
CASECONVERT NONE | UPPER | LOWER
ONGOTFOCUS <OnGotFocusProcedur>
ONCHANGE <OnChangeProcedure>
ONLOSTFOCUS <OnLostFocusProcedure>
ONENTER <OnEnterProcedure>
RIGHTALIGN <lValue>
VISIBLE <lValue>
TABSTOP <lValue>
HELPID <nHelpId>
END TEXTBOX
Properties:
- Value
- Enabled
- Visible
- Row
- Col
- Width
- Height
- FontName
- FontSize
- FontBold
- ToolTip
- CaretPos
- ReadOnly
- Name (R)
- TabStop (D)
- Field (D)
- Parent (D)
- InputMask (D)
- Format (D)
- MaxLength (D)
- RightAlign (D)
- HelpId (D)
- CaseConvert (D)
- DataType (D)
D: Available at control definition only
R: Read-Only
Events:
- OnChange
- OnEnter
Methods:
- Show
- Hide
- SetFocus
- Release
- Refresh
- Save
InputMask String (Numeric Textbox):
9 Displays digits
$ Displays a dollar sign in place of a leading space
* Displays an asterisk in place of a leading space
. Specifies a decimal point position
, Specifies a comma position
InputMask String (Non-Numeric Textbox):
9 Digits
A Alphabetic Characters
! Converts an alphabetic character to uppercase
(All other characters ar included in text in the position indicated by
the mask)
Format String (Allowed in Numeric Textbox Only):
C : Displays CR after positive numbers
X : Displays DB after negative numbers
( : Encloses negative numbers in parentheses
E : Displays numbers in British format
Hints:
- Inputmask and Maxlength clauses can't be used simultaneously.