diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-12-04 20:36:11 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2021-12-04 20:36:11 +0100 |
| commit | a0724ab7c4fedbd037d5b72332ae47fde8584dff (patch) | |
| tree | 2c2c37ac226d7b26d2c050fc62af12aa0f9efe68 /src/Fl_Message.h | |
| parent | 130f864d1d3f02f854a5f4085a49318a03a8eea0 (diff) | |
Add fl_message_icon_label() function (STR #2762)
This message icon label (usually one character) will be used in the
next call of one of the common dialogs.
test/ask.cxx: use fl_message_icon_label()
Diffstat (limited to 'src/Fl_Message.h')
| -rw-r--r-- | src/Fl_Message.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_Message.h b/src/Fl_Message.h index 83dfad1df..7e6cfd623 100644 --- a/src/Fl_Message.h +++ b/src/Fl_Message.h @@ -65,6 +65,9 @@ private: static const char *message_title_; static const char *message_title_default_; + // icon label for next dialog (STR #2762) + static const char *message_icon_label_; + // Note: since Fl_Message objects are destroyed before fl_input() // and fl_password() return their input text, we *need* to store // the text in an internal (static) buffer. :-( @@ -89,6 +92,7 @@ public: static Fl_Box *message_icon(); static void message_title(const char *title); static void message_title_default(const char *title); + static void icon_label(const char *str); /** Implements fl_message_position(const int, const int y, const int center). */ static void message_position(const int x, const int y, const int center) { |
