BBjMDI::addListButton
Description
In BBj 17.00 and higher, this method adds a BBjListButton to the BBjMDI toolbar.
Syntax
Return Value |
Method |
---|---|
addListButton(int ID, int x, int y, int width, int height, string initialContents) |
|
addToolButton(int ID, int x, int y, int width, int height, string initialContents, string flags) |
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. |
||||||||||||||||
initialContents |
Line feed separated strings containing the initial contents of the list. |
||||||||||||||||
flags |
Control flags, as follows:
|
Return Value
Returns the created BBjListButton object.
Remarks
The list of choices available may be modified only under program control. The values in the list may be accessed using a zero-based list index integer. Unlike the list edit control, it does not allow a value to be entered manually. As the user types, the first matching selection in the list is placed in the edit area. Various keys may be used to navigate in the list including the Home (first selection), End (last selection), Page Up and Page Down, and the arrow keys.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.