BBjMsgBox
Description
In BBj 25.03 and higher, the BBjMsgBox object is equivalent to the MSGBOX() Function.
Creation
BBjAPI > BBjMsgBox
The BBjMsgBox object is created through the following BBjAPI methods:
| Return Value | Method |
|---|---|
|
BBjMsgBox BBjMsgBox |
msgbox() msgbox(String message) |
Methods of BBjMsgBox
| Return Value | Method |
|---|---|
|
BBjMsgBox |
button1(String button1) |
|
BBjMsgBox |
button2(String button2) |
|
BBjMsgBox |
button3(String button3) |
|
BBjMsgBox |
message(String message) |
|
BBjMsgBox |
modes(String modes) |
|
BBjMsgBox |
options(int options) |
|
|
show() |
|
BBjMsgBox |
timeout(int timeout) |
|
BBjMsgBox |
title(String title) |
Constants
Buttons
| Value | BBjMsgBox Constant | Buttons |
|---|---|---|
|
0 |
MSGBOX_BUTTONS_OK |
OK |
|
1 |
MSGBOX_BUTTONS_OK_CANCEL |
OK and Cancel |
|
2 |
MSGBOX_BUTTONS_ABORT_RETRY_IGNORE |
Abort, Retry, and Ignore |
|
3 |
MSGBOX_BUTTONS_YES_NO_CANCEL |
Yes, No, and Cancel |
|
4 |
MSGBOX_BUTTONS_YES_NO |
Yes and No |
|
5 |
MSGBOX_BUTTONS_RETRY_CANCEL |
Retry and Cancel |
|
7 |
MSGBOX_BUTTONS_CUSTOM |
Custom |
Icon
| Value | BBjMsgBox Constant | Icon |
|---|---|---|
|
0 |
MSGBOX_ICON_NONE (default) |
None |
|
16 |
MSGBOX_ICON_STOP |
Stop Sign |
|
32 |
MSGBOX_ICON_QUESTION |
Question Mark |
|
48 |
MSGBOX_ICON_EXCLAMATION |
Exclamation Point |
|
64 |
MSGBOX_ICON_INFORMATION |
Information Symbol |
Default Button
| Value | BBjMsgBox Constant | Default Button |
|---|---|---|
|
0 |
MSGBOX_DEFAULT_FIRST |
First Button |
|
256 |
MSGBOX_DEFAULT_SECOND |
Second Button |
|
512 |
MSGBOX_DEFAULT_THIRD |
Third Button |
|
65536 |
MSGBOX_DEFAULT_NONE |
Do not allow the currently highlighted button to be selected with Enter. |
Render HTML
|
Value |
BBjMsgBox Constant |
Action |
|---|---|---|
|
0 |
(Default, no constant) |
Render title and/or message as HTML if the string starts with |
|
32768 |
MSGBOX_RAW_TEXT |
Disable HTML processing. Render both title and message as raw text, even if the string starts with |
MDI
|
Value |
BBjMsgBox Constant |
Action |
|---|---|---|
|
131072 |
MSGBOX_MDI_DESKTOP |
If the current window is contained within an MDI desktop, limit the BBjMsgBox dialog to the MDI desktop. Ignored if not in MDI. |
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.