diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2011-02-12 12:08:52 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2011-02-12 12:08:52 +0000 |
| commit | 3bb11b999318d90632d1d9a412f7c04df1aa86d3 (patch) | |
| tree | 69a0845d90e28d96ea3f9a86a81521e5856cd852 /test | |
| parent | f8c0dd01101139c7b79e02d33c2e7dad5219056c (diff) | |
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
Diffstat (limited to 'test')
| -rw-r--r-- | test/ask.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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) |
