BBjMDI::addMenuButton
Description
In BBj 8.00 and higher, this method adds a menu button control to the BBjMDI window.
Syntax
Return Value |
Method |
---|---|
addMenuButton(int ID, int x, int y, int width, int height, string title) |
|
addMenuButton(int ID, int x, int y, int width, int height, string title, 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 |
Ignored. |
|||||||||||||||
y |
Ignored. |
|||||||||||||||
width |
Width of the control in current units. |
|||||||||||||||
height |
Height of the control in current units. |
|||||||||||||||
title |
Tool button title. The title can be ordinary text or "BITMAP=", followed by a path name. (PREFIX is not searched.) If the BITMAP= syntax is used, an attempt is made to locate and load a bitmapped image (see the IMAGE Mnemonic - Draw Bitmapped Image (SYSGUI)) from that file. If it succeeds, the image is drawn in the button. Otherwise the text, complete with "BITMAP=", is displayed. The title or bitmap can be changed at any time with the 'TITLE' mnemonic. Including the '&' before a character in the title causes it to be an accelerator. |
|||||||||||||||
flags |
Control flags, as follows:
|
Return Value
Returns the created BBjMenuButton object.
Remarks
None.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.