@... EDITBOX DEFINE EDITBOX Creates an EditBox control.
|
An EditBox control is a rectangular control window typically used in a dialog box to permit the user to enter and edit text by typing on the keyboard.
SYNTAX
Standard Window:
@ <nRow> ,<nCol> EDITBOX <ControlName>
[ ID <nId> ]
[ OF | PARENT | DIALOG <ParentWindowName> ]
[ WIDTH <nWidth> ]
[ HEIGHT <nHeight> ]
[ FIELD <FieldName> ]
[ VALUE <cValue> ]
[ READONLY ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <anBackColor> ] // * or <anBackColor,anReadOnlyBackColor>
[ FONTCOLOR <anFontColor> ] // * or <anFontColor,anReadOnlyFontColor>
[ MAXLENGTH <nInputLength> ]
[ ON GOTFOCUS <OnGotFocusProcedure> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ NOVSCROLL ]
[ NOHSCROLL ]
[ ON INIT <bInit> ]
Dialog Window:
REDEFINE EDITBOX <ControlName>
ID <nId>
[ OF | PARENT | DIALOG <ParentWindowName> ]
[ FIELD <FieldName> ]
[ VALUE <cValue> ]
[ READONLY ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <anBackColor> ] // * or <anBackColor,anReadOnlyBackColor>
[ FONTCOLOR <anFontColor> ] // * or <anFontColor,anReadOnlyFontColor>
[ MAXLENGTH <nInputLength> ]
[ ON GOTFOCUS <OnGotFocusProcedure> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ HELPID <nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ NOVSCROLL ]
[ NOHSCROLL ]
[ ON INIT <bInit> ]
SPLITBOX VERSION
EDITBOX <ControlName>
[ OF | PARENT <ParentWindowName> ]
[ WIDTH <nWidth> ]
[ HEIGHT <nHeight> ]
[ FIELD <FieldName> ]
[ VALUE <cValue> ]
[ READONLY ]
[ FONT <cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <anBackColor> ] // * or <anBackColor,anReadOnlyBackColor>
[ FONTCOLOR <anFontColor> ] // * or <anFontColor,anReadOnlyFontColor>
[ MAXLENGTH <nInputLength> ]
[ ON GOTFOCUS <OnGotFocusProcedure> | <bBlock> ]
[ ON CHANGE <OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ HELPID <nHelpId> ]
[ BREAK ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ NOVSCROLL ]
[ NOHSCROLL ]
[ ON INIT <bInit> ]
Alternate Syntax:
DEFINE EDITBOX <ControlName>
[ ID <nId> ]
[ PARENT <ParentWindowName> ]
COL <nCol>
ROW <nRow>
[ WIDTH <nWidth> ]
[ HEIGHT <nHeight> ]
[ FIELD <FieldName> ]
[ VALUE <cValue> ]
[ READONLY < .T. | .F.> ]
[ FONTNAME <cFontName> ]
[ FONTSIZE <nFontSize> ]
[ FONTBOLD < .T. | .F.> ]
[ FONTITALIC < .T. | .F.> ]
[ FONTUNDERLINE < .T. | .F.> ]
[ FONTSTRIKEOUT < .T. | .F.> ]
[ TOOLTIP <cToolTipText> ]
[ BACKCOLOR <anBackColor> ] // * or <anBackColor,anReadOnlyBackColor>
[ FONTCOLOR <anFontColor> ] // * or <anFontColor,anReadOnlyFontColor>
[ MAXLENGTH <nInputLength> ]
[ ONGOTFOCUS <OnGotFocusProcedure> | <bBlock> ]
[ ONCHANGE <OnChangeProcedure> | <bBlock> ]
[ ONLOSTFOCUS <OnLostFocusProcedure> | <bBlock> ]
[ HELPID <nHelpId> ]
[ INVISIBLE < .T. | .F.> ]
[ NOTABSTOP < .T. | .F.> ]
[ NOVSCROLLBAR < .T. | .F.> ]
[ NOHSCROLLBAR < .T. | .F.> ]
[ ONINIT <bInit> ]
END EDITBOX
Note: Since version HMG 1.1 Experimental 12a FontColor and BackColor property can be defined as RGB array or array of RGBArrays for Enable and ReadOnly stage ReadOnly stage preserve defined FontColor and BackColor
nRow, nCol
|
Position in the area of ??the window in pixels.
|
nWidth, nHeight
|
The desired size of the ComboBox Control in pixels.
|
nId
|
The ID identifier this Control in Dialog Window
|
ControlName
|
A reference to the ComboBox Control
|
ParentWindowName
|
A reference to the Parent Window.
|
nHelpId
|
The help topic identifier for this Control
|
FieldName
|
Specifies the Field Name to use as Data Source
|
cValue
|
Specifies the startup value of the EditBox control
|
FontName
|
Specifies the Font Name
|
FontSize
|
Specifies the Font Size
|
cToolTipText
|
Specifies the Text for the ToolTip
|
anBackColor
|
Specifies the Background Color
|
anFontColor
|
Specifies the Font Color
|
anReadOnlyBackColor
|
Specifies the Background Color when control is READONLY
|
anReadOnlyFontColor
|
Specifies the Font Color when control is READONLY
|
nInputLength
|
Specifies the number of characters that can be entered
|
OnGotFocusProcedure
|
Procedure to execute when GotFocus
|
OnChangeProcedure
|
Procedure to execute when Change
|
OnLostFocusProcedure
|
Procedure to execute when LostFocus
|
|
|
READONLY
|
Specifies that the EditBox is not modifiable thus READONLY
|
INVISIBLE
|
The visibility property specifies whether or not a control is
visible
|
NOTABSTOP
|
Stop the control to receive focus and participate in the tabbing
sequence
|
NOVSCROLL
|
Specified that we don't want Vertical Scrolling
|
NOHSCROLL
|
Specified that we don't want Horizontal Scrolling
|
NOVSCROLLBAR
|
Specified that we don't want Vertical Scroll Bar
|
NOHSCROLLBAR
|
Specified that we don't want Horizontal Scroll Bar
|
PROPERTIES:
Set / Gets EditBox value.
| |
Set / Gets enabled state of a EditBox control
| |
Set / Gets visible a EditBox control.
| |
Set / Gets row position of a EditBox control.
| |
Set / Gets column position of a EditBox control.
| |
Set / Gets width of a EditBox control.
| |
Set / Gets height of a EditBox control.
| |
Set / Gets EditBox control's font name.
| |
Set / Gets EditBox control's font size.
| |
Set / Gets EditBox control's font bold property
| |
Set / Gets EditBox control's font italic property
| |
Set / Gets EditBox control's font underline property
| |
Set / Gets EditBox control's font strikeout property
| |
Set / Gets the foreground color for text within the EditBox
| |
Set / Gets the background color for text within the EditBox
| |
Set / Gets EditBox control's tooltip text.
| |
Set / Gets the caret position of a EditBox control.
| |
Set / Gets user property 'CaseConvert' for EditBox control
| |
Set / Gets user property 'Cargo' for EditBox control
| |
Retrieves the name of a EditBox control.
| |
Set the name as character identifier of the parent window.
| |
Set the numeric help topic identifier of the control.
| |
Set the Field data of active database.
| |
Set / Gets EditBox control's readonly property
| |
Set the length of editorial field in signs.
| |
Sets whether an element behavior can't receive focus and participate in
the tabbing sequence
| |
Automatically scrolls text up one page when the user presses the
ENTER key on the last line.
| |
Automatically scrolls text to the right by 10 characters when the user
types a character at the end of the line.
| |
Control passes to the statement that follows the terminated statement.
|
D: Available at control definition only
R: Read-Only
EVENTS:
Action to be performed when getting the focus
| |
Action to be performed when generic changing of the control
| |
Action to be performed when losing the focus.
|
METHODS:
Shows a EditBox control
| |
Hides a EditBox control
| |
Redraw a Control
| |
Gives the focus to a EditBox control
| |
Releases a EditBox control from memory
| |
Repaint a Control
| |
Save data for Control EditBox
| |
Save a
EditBox control as BitMap file.
|
EXAMPLE: