BBjWindow::addEditBox
Description
Creates an edit box control in the BBjWindow.
Syntax
Return Value |
Method |
---|---|
addEditBox(int ID, number x, number y, number w, number h, string title) |
|
addEditBox(int ID, number x, number y, number w, number h, string title, string flags) |
|
addEditBox(int ID, number x, number y, number w, number h, string title, string flags, string type) |
|
BBjEditBox | addEditBox(int ID, string title) |
BBjEditBox | addEditBox(int ID, string title, string flags) |
BBjEditBox | addEditBox(int ID, string title, string flags, string type) |
BBjEditBox | addEditBox(string title) |
BBjEditBox | addEditBox(string title, string flags) |
BBjEditBox | addEditBox(string title, string flags, string type) |
Parameters
Variable |
Description |
||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID |
Control ID number. It must be an integer between 1 and 32767 and be unique within a given top-level window. |
||||||||||||||||||||||||||||
x |
Horizontal position of the upper-left corner of the control in current units. |
||||||||||||||||||||||||||||
y |
Vertical position of the upper-left corner of the control in current units. |
||||||||||||||||||||||||||||
width |
Width of the control in current units. |
||||||||||||||||||||||||||||
height |
Height of the control in current units. |
||||||||||||||||||||||||||||
title |
Title of the control. Including the '&' before a character in the title causes it to be an accelerator. |
||||||||||||||||||||||||||||
flags |
Control flags, as follows:
|
||||||||||||||||||||||||||||
type |
In BBj 15.00 and above, the optional type parameter specifies a particular HTML5 input element style. This is only meaningful in BUI, and availability is determined by the browser. When running in GUI, or when running in a browser that doesn't support a particular type, this is assumed to be "text", a simple text edit control. Use BBjEditBox::getEditType to determine the actual generated control type.
|
Return Value
Returns the created BBjEditBox object.
Remarks
If the ID parameter is not specified, a control ID is assigned dynamically using getAvailableControlID().
If the x, y, width, and height parameters are not specified, they are all initialized to 0. This is typically for use with DWC windows that dynamically arrange their contents (window creation flag $00100000$).
Example 1
|
Example 2
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.