A message box with a single "Close" button. More...
#include <gui_tk.h>
Public Member Functions | |
| template<typename STR > | |
| MessageBox2 (Screen *parent, int x, int y, int width, const STR title, const STR text) | |
| Create a new message box. | |
| template<typename STR > | |
| void | setText (const STR text) |
| Set a new text. Size of the box is adjusted accordingly. | |
| virtual bool | keyDown (const GUI::Key &key) |
| Key was pressed. Returns true if event was handled. | |
| virtual bool | keyUp (const GUI::Key &key) |
| Key was released. Returns true if event was handled. | |
Protected Attributes | |
| Label * | message |
| Button * | close |
| WindowInWindow * | wiw |
1.8.0