
BBjWindow::addInputE
Description
Creates a masked edit control in the BBjWindow.
Syntax
Return Value |
Method |
addInputE(int ID, int x, int y, int w, int h) |
|
addInputE(int ID, int x, int y, int w, int h, string flags) |
|
addInputE(int ID, int x, int y, int w, int h, string flags, int len) |
|
addInputE(int ID, int x, int y, int w, int h, string flags, int len, string pad) |
|
addInputE(int ID, int x, int y, int w, int h, string flags, int len, string pad, string val) |
|
addInputE(int ID, int x, int y, int w, int h, string flags, int len, string pad, int initPos, string restore, string val) |
|
addInputE(int ID, int x, int y, int w, int h, string flags, string mask) |
|
addInputE(int ID, int x, int y, int w, int h, string flags, string mask, string pad) |
|
addInputE(int ID, int x, int y, int w, int h, string flags, string mask, string pad, string val) |
|
addInputE(int ID, int x, int y, int w, int h, string flags, string mask, string pad, int initPos, string restore, string val) |
Parameters
Variable |
Description |
|
ID |
INPUTE control ID. |
|
x |
Horizontal position of the upper-left corner of the INPUTE control. |
|
y |
Vertical position of the upper-left corner of the INPUTE control. |
|
w |
Width of the INPUTE control. |
|
h |
Height of the INPUTE control. To create a standard size control, set the h parameter to 0. |
|
flags |
Control flags, as follows: |
|
|
Flag |
Description |
|
$0000$ |
Left justifies text (default). |
|
$0001$ |
Sets the control to be initially disabled. |
|
$0002$ |
Passes the <Enter> key to the parent window. |
|
$0004$ |
Passes the <Tab> key to the parent window. |
|
$0008$ |
Prompts non-mouse events on the control to highlight the control text. |
|
$0010$ |
Sets the control to be initially invisible. |
|
$0020$ |
Designates the control to be part of akeyboard navigation group. |
|
$0800$ |
Draws a recessed client edge around the control. |
|
$1000$ |
Draws a raised edge around the control. |
|
$4000$ |
Centers text. |
|
$8000$ |
Right justifies text. |
mask |
The following defines the input mask characters for the mask$ parameter: |
|
|
X a A 0 U z Z |
Any printable character. Any alphabetic character. Any alphabetic character. Converts lower-case alphabetic characters to upper case. Any digit. Any digit, alphabetic, space, or punctuation character. Converts lower-case alphabetic characters to upper case. Any digit or alphabetic character. Any digit or alphabetic character. Converts lower-case alphabetic characters to upper case. |
len |
Length of the returned string. |
|
pad |
Input pad character. |
|
val |
Default value. |
|
initPos |
Beginning of the input region. |
|
restore |
Restore value. |
Return Value
This method returns the created BBjInputE object.
Remarks
Accepts user input in a manner similar to the INPUTE verb, but does not provide string verification.
Example
REM Add a INPUTE control to a window |
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.