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 |
|---|---|---|
|
|
MSGBOX_BUTTONS_OK |
OK |
|
|
MSGBOX_BUTTONS_OK_CANCEL |
OK and Cancel |
|
|
MSGBOX_BUTTONS_ABORT_RETRY_IGNORE |
Abort, Retry, and Ignore |
|
|
MSGBOX_BUTTONS_YES_NO_CANCEL |
Yes, No, and Cancel |
|
|
MSGBOX_BUTTONS_YES_NO |
Yes and No |
|
|
MSGBOX_BUTTONS_RETRY_CANCEL |
Retry and Cancel |
|
|
MSGBOX_BUTTONS_CUSTOM |
Custom |
Icon
| Value | BBjMsgBox Constant | Icon |
|---|---|---|
|
|
MSGBOX_ICON_NONE (default) |
None |
|
|
MSGBOX_ICON_STOP |
Stop Sign |
|
|
MSGBOX_ICON_QUESTION |
Question Mark |
|
|
MSGBOX_ICON_EXCLAMATION |
Exclamation Point |
|
|
MSGBOX_ICON_INFORMATION |
Information Symbol |
Default Button
| Value | BBjMsgBox Constant | Default Button |
|---|---|---|
|
|
MSGBOX_DEFAULT_FIRST |
First Button |
|
|
MSGBOX_DEFAULT_SECOND |
Second Button |
|
|
MSGBOX_DEFAULT_THIRD |
Third Button |
|
|
MSGBOX_DEFAULT_NONE |
Do not allow the currently highlighted button to be selected with Enter. |
Render HTML
| Value | BBjMsgBox Constant | Action |
|---|---|---|
|
|
(Default, no constant) |
Render title and/or message as HTML if the string starts with |
|
|
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 |
|---|---|---|
|
|
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.