From 624e885b240c3d287b6852eb8d6e2a0d2cc729f8 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 8 Feb 2007 07:58:47 +0000 Subject: STR #1584: even smarter mouse pointer hiding. I also fixed two little historic bugs in "ask" (double adding a widget, and not using "label.obj()" instead of "copy_label()" for non-static buffer. Lastly, I changed "boxtype" to use a Double_Window because it has become so big now that it started flickering. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5671 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/ask.cxx | 4 ++-- test/boxtype.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/ask.cxx b/test/ask.cxx index a29952544..c049fccca 100644 --- a/test/ask.cxx +++ b/test/ask.cxx @@ -47,7 +47,7 @@ void rename_me(Fl_Widget*o) { const char *input = fl_input("Input:", o->label()); if (input) { - o->label(input); + o->copy_label(input); o->redraw(); } } @@ -65,7 +65,7 @@ int main(int argc, char **argv) { Fl_Window window(200, 55); Fl_Return_Button b(20, 10, 160, 35, buffer); b.callback(rename_me); - window.add(b); + window.end(); window.resizable(&b); window.show(argc, argv); diff --git a/test/boxtype.cxx b/test/boxtype.cxx index 34819f601..11b853075 100644 --- a/test/boxtype.cxx +++ b/test/boxtype.cxx @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include int N = 0; @@ -50,7 +50,7 @@ void bt(const char *name, Fl_Boxtype type, int square=0) { } int main(int argc, char ** argv) { - window = new Fl_Single_Window(4*W,ROWS*H); + window = new Fl_Double_Window(4*W,ROWS*H); window->box(FL_FLAT_BOX); #if 0 // this code uses the command line arguments to set arbitrary color schemes Fl::args(argc, argv); -- cgit v1.2.3