31 #ifndef TBX_TEXTDISPLAYWINDOW_H_
32 #define TBX_TEXTDISPLAYWINDOW_H_
37 #include "redrawlistener.h"
38 #include "hasbeenhiddenlistener.h"
40 #include "showfullspec.h"
66 std::vector<int> _line_end;
70 bool _delete_close_command;
75 void create_window(
const char *buttons,
76 int default_button,
int cancel_button,
78 bool calc_line_ends(
int max_width);
82 int default_button = -1,
int cancel_button = -1,
83 int button_width = 200);
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
void title(const std::string &title)
Set the title for the text display window.
Definition: textdisplaywindow.cc:90
tbx::Window window()
Get underlying window used for the message window.
Definition: textdisplaywindow.h:90
The Window object represents a toolbox window.
Definition: window.h:70
void show()
Show the text display window.
Definition: textdisplaywindow.cc:129
virtual ~TextDisplayWindow()
Destructor, delete close command if necessary.
Definition: textdisplaywindow.cc:79
Listener for an object has been hidden event.
Definition: hasbeenhiddenlistener.h:36
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:61
Class to represent a two dimensional bounding box.
Definition: bbox.h:38
void show_as_menu()
Show the text display window as a menu.
Definition: textdisplaywindow.cc:142
Redraw event listener.
Definition: redrawlistener.h:76
Base class for commands in tbx.
Definition: command.h:37
void delete_on_hide()
Set up text display window to delete itself when it is hidden.
Definition: textdisplaywindow.cc:100
Event passed to redraw listener to give details on the area that needs a redraw.
Definition: redrawlistener.h:44
TextDisplayWindow(const std::string &text, const char *buttons, int default_button=-1, int cancel_button=-1, int button_width=200)
Construct a text display window with the given text and buttons.
Definition: textdisplaywindow.cc:62
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
Class to provide information on a toolbox event.
Definition: eventinfo.h:49