diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-05-09 11:29:59 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-05-09 11:29:59 +0000 |
| commit | 2dacc9a1db09a72a46271e02fb2b329255e5bd47 (patch) | |
| tree | d35989dd502d82167b147a70acd5bceefbac51f6 /test | |
| parent | 9a5a5b8739a158ffefe556deab4890741cc1c8e7 (diff) | |
Fix documentation of Fl_Tile (STR #3303).
Clarify that the resizable() box should be the first child to ensure
correct event delivery to children.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11727 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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(); |
