From 3bb11b999318d90632d1d9a412f7c04df1aa86d3 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 12 Feb 2011 12:08:52 +0000 Subject: Common dialogs like fl_message() and fl_ask() can now have a window title (STR #2562). Added a test case for disabling the hotspot and using a window title to test/ask.cxx. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8417 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/ask.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/ask.cxx b/test/ask.cxx index cfe1dcbd6..29def0df3 100644 --- a/test/ask.cxx +++ b/test/ask.cxx @@ -61,8 +61,12 @@ void rename_me_pwd(Fl_Widget*o) { } void window_callback(Fl_Widget*, void*) { + int hotspot = fl_message_hotspot(); + fl_message_hotspot(0); + fl_message_title("note: no hotspot set for this dialog"); int rep = fl_choice("Are you sure you want to quit?", "Cancel", "Quit", "Dunno"); + fl_message_hotspot(hotspot); if (rep==1) exit(0); else if (rep==2) -- cgit v1.2.3