diff options
| author | Greg Ercolano <erco@seriss.com> | 2009-04-21 09:09:37 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2009-04-21 09:09:37 +0000 |
| commit | b475babf172ec6702af57f514c6fc28bd43159da (patch) | |
| tree | 115b0aa1a977a8496552c2b16161f96573e350a9 /test/file_chooser.cxx | |
| parent | 03ec459eb03b18c4792c9edc5f8e585653c276e9 (diff) | |
Most test demos converted to use Fl_Double_Window
to prevent flicker when new users run test/demo programs.
For details, see fltk.development thread started 04/16/09,
"Subject: browser demo flicker".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6772 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/file_chooser.cxx')
| -rw-r--r-- | test/file_chooser.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx index 8af406647..872994e2c 100644 --- a/test/file_chooser.cxx +++ b/test/file_chooser.cxx @@ -48,6 +48,7 @@ #include <FL/Fl_Shared_Image.H> #include <FL/Fl_PNM_Image.H> #include <FL/Fl_Light_Button.H> +#include <FL/Fl_Double_Window.H> #include <string.h> @@ -91,9 +92,9 @@ int // O - Exit status main(int argc, // I - Number of command-line arguments char *argv[]) // I - Command-line arguments { - Fl_Window *window;// Main window - Fl_Button *button;// Buttons - Fl_File_Icon *icon; // New file icon + Fl_Double_Window *window;// Main window + Fl_Button *button;// Buttons + Fl_File_Icon *icon; // New file icon // Make the file chooser... @@ -108,7 +109,7 @@ main(int argc, // I - Number of command-line arguments Fl_Shared_Image::add_handler(ps_check); // Make the main window... - window = new Fl_Window(400, 215, "File Chooser Test"); + window = new Fl_Double_Window(400, 215, "File Chooser Test"); filter = new Fl_Input(50, 10, 315, 25, "Filter:"); if (argc > 1) |
