diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/tile.cxx | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/test/tile.cxx b/test/tile.cxx index 614fd7c67..5bb8cf851 100644 --- a/test/tile.cxx +++ b/test/tile.cxx @@ -1,9 +1,9 @@ // // "$Id$" // -// Tile test program for the Fast Light Tool Kit (FLTK). +// Fl_Tile test program for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2014 by Bill Spitzak and others. +// Copyright 1998-2016 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -31,6 +31,11 @@ int main(int argc, char** argv) { int dx = 20, dy = dx; // border width of resizable() - see below Fl_Tile tile(0,0,300,300); + // create the symmetrical resize box with dx and dy pixels distance, resp. + // from the borders of the Fl_Tile widget before all other children + Fl_Box r(tile.x()+dx,tile.y()+dy,tile.w()-2*dx,tile.h()-2*dy); + tile.resizable(r); + Fl_Box box0(0,0,150,150,"0"); box0.box(FL_DOWN_BOX); box0.color(9); @@ -75,12 +80,6 @@ int main(int argc, char** argv) { box3b.align(FL_ALIGN_CLIP); //tile3.end(); - // create the symmetrical resize box with dx and dy pixels distance, resp. - // from the borders of the Fl_Tile widget - Fl_Box r(tile.x()+dx,tile.y()+dy,tile.w()-2*dx,tile.h()-2*dy); - tile.resizable(r); - // r.box(FL_BORDER_FRAME); - tile.end(); window.end(); |
