Message box. More...
#include <messagebox.hpp>
Public Member Functions | |
void | set_message (const std::string &) throw () |
Set message in message box. | |
void | set_icon (const std::string &) throw () |
Set icon in message box. | |
void | set_title (const std::string &) throw () |
Set title in message box. | |
void | add_response (int a, const std::string &, bool t=false) throw () |
Add response in message box. | |
int | get_response () throw () |
Get response after run. | |
void | run () throw () |
Runs the message box. |
Message box.
{ toolkit::messagebox w; w.set_message("Do you want to delete all?"); w.set_icon("question.png"); w.set_title("Question"); enum answer { yes, no }; w.add_response(yes, "_Yes", true); }
To create message box
void instigate::toolkit::messagebox::add_response | ( | int | a, | |
const std::string & | , | |||
bool | t = false | |||
) | throw () |
Add response in message box.
a | The response of the button | |
t | The default button |