25 #ifndef TBX_MESSAGEWINDOW_H 26 #define TBX_MESSAGEWINDOW_H 31 #include "textdisplaywindow.h" 70 void sprite(
const std::string &sprite_name);
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
Class to show some text in a window in the centre of the screen, with an icon to the left and one or ...
Definition: textdisplaywindow.h:58
Base class for commands in tbx.
Definition: command.h:36
void show_message(const std::string &msg, const std::string &title, const std::string &sprite_name, tbx::Command *close_command, bool delete_command)
Show a message in a window centred in the screen.
Definition: messagewindow.cc:55
MessageWindow(const std::string &msg)
Construct a message window with the give message.
Definition: messagewindow.cc:103
Class to show a message in a window in the centre of the screen, resizing the window to fit the messa...
Definition: messagewindow.h:64
void sprite(const std::string &sprite_name)
Set the name of the sprite to show in the message box.
Definition: messagewindow.cc:118
void title(const std::string &title)
Set the title for the text display window.
Definition: textdisplaywindow.cc:90
void close_command(tbx::Command *close_command, bool delete_command=false)
Set command to be run when message window is closed.
Definition: textdisplaywindow.cc:116
void show_message_as_menu(const std::string &msg, const std::string &title, const std::string &sprite_name, tbx::Command *close_command, bool delete_command)
Show a message in a window centred in the screen in the same way as a menu is shown.
Definition: messagewindow.cc:87