Minor fixes and window size_range in new test/tile.cxx

Also add comments to clarify what "old" and "new" code is,respectively.
This commit is contained in:
Albrecht Schlosser 2023-11-29 14:42:06 +01:00
parent 49af3d88e3
commit a0e4a3fd5d
1 changed files with 11 additions and 4 deletions

View File

@ -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();
}