#include <BMessagebox.h>
Inheritance diagram for BMessagebox:


This displays a text and can have an OK button, an additional Cancel button, or no buttons at all.
Public Types | |
| enum | BMessageboxType { TYPE_NONE, TYPE_OK, TYPE_OK_CANCEL } |
| enum | BMessageboxResult { RESULT_OK, RESULT_CANCEL } |
Public Member Functions | |
| BMessagebox (BScreen *screen, const BSize &size, const std::string &text, BMessageboxType type) | |
| ~BMessagebox () | |
| void | run () |
| Run the message box, blocking until a button is clicked. | |
| void | onButtonClick (BButton *button) |
| int | result () |
| Return whether the user clicked OK or Cancel. | |
Static Public Member Functions | |
| void | runMessage (BScreen *screen, const std::string &txt, BWidget::Rotation rot=BWidget::ROT_0) |
| Run a very simple dialog: Just a text and an OK button. | |
|
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
Reimplemented from BButton::Delegate. |
|
|
Return whether the user clicked OK or Cancel.
|
|
|
Run the message box, blocking until a button is clicked. If type is TYPE_NONE, this returns immediately. Use show() and BGUI::get()->repaint() instead. Reimplemented from BDialog. |
|
||||||||||||||||
|
Run a very simple dialog: Just a text and an OK button.
|
1.3-rc3