diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-11-29 14:42:06 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-11-29 14:42:06 +0100 |
| commit | a0e4a3fd5d028694e9fa74d2de55eb4f3c3f14b0 (patch) | |
| tree | 4091240f72df48ade35ee9dfaa9020dddbc4096d /test/tile.cxx | |
| parent | 49af3d88e39713c00d74eb15f5ca42f438c185e9 (diff) | |
Minor fixes and window size_range in new test/tile.cxx
Also add comments to clarify what "old" and "new" code is,respectively.
Diffstat (limited to 'test/tile.cxx')
| -rw-r--r-- | test/tile.cxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/tile.cxx b/test/tile.cxx index d5cb2439d..79193d357 100644 --- a/test/tile.cxx +++ b/test/tile.cxx @@ -23,7 +23,9 @@ // #define CLASSIC_MODE int main(int argc, char** argv) { -#if 0 // Sample code form Fl_Tile documentation + +#if 0 // Sample code from Fl_Tile documentation + Fl_Window win(400, 300, "My App"); Fl_Tile tile(0, 0, 400, 300); @@ -45,9 +47,11 @@ int main(int argc, char** argv) { win.end(); win.resizable(tile); - win.show(argc,argv); win.size_range(200, 50); -#else + win.show(argc,argv); + +#else // new Fl_Tile test code + Fl_Double_Window window(300, 300); window.box(FL_NO_BOX); window.resizable(window); @@ -121,7 +125,10 @@ int main(int argc, char** argv) { #endif w1.show(); + window.size_range(90, 90); window.show(argc,argv); -#endif + +#endif // new Fl_Tile test code + return Fl::run(); } |
