From a0724ab7c4fedbd037d5b72332ae47fde8584dff Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 4 Dec 2021 20:36:11 +0100 Subject: 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() --- test/ask.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test') 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(); -- cgit v1.2.3