From a0e4a3fd5d028694e9fa74d2de55eb4f3c3f14b0 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 29 Nov 2023 14:42:06 +0100 Subject: [PATCH] Minor fixes and window size_range in new test/tile.cxx Also add comments to clarify what "old" and "new" code is,respectively. --- test/tile.cxx | 15 +++++++++++---- 1 file 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(); }