summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-12-04 20:36:11 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-12-04 20:36:11 +0100
commita0724ab7c4fedbd037d5b72332ae47fde8584dff (patch)
tree2c2c37ac226d7b26d2c050fc62af12aa0f9efe68 /test
parent130f864d1d3f02f854a5f4085a49318a03a8eea0 (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 'test')
-rw-r--r--test/ask.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/ask.cxx b/test/ask.cxx
index 0800f2d01..8c708cad1 100644
--- a/test/ask.cxx
+++ b/test/ask.cxx
@@ -35,10 +35,13 @@
void rename_button(Fl_Widget *o, void *v) {
int what = fl_int(v);
Fl_String input;
- if (what == 0)
+ if (what == 0) {
+ fl_message_icon_label("§");
input = fl_input_str(0, "Input (no size limit, use ctrl/j for newline):", o->label());
- else
+ } else {
+ fl_message_icon_label("€");
input = fl_password_str(20, "Enter password (max. 20 characters):", o->label());
+ }
if (input.value()) {
o->copy_label(input.value());
o->redraw();