From acc96cdf5666a37ff87d0038af74c1af1628ca11 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 6 Nov 2023 07:44:55 +0100 Subject: [PATCH] CHANGES.txt: add Fl_Grid, Fl_Window::maximize() Also, remove stray virtual keyword. --- CHANGES.txt | 3 +++ src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 3788c5947..7ff1e140c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -34,6 +34,7 @@ Changes in FLTK 1.4.0 Released: ??? ?? 2022 This supports desktops mixing screens with distinct resolutions. In addition, use environment variable FLTK_SCALING_FACTOR to further adjust the starting scaling factor of all FLTK apps. + - New Fl_Grid class to layout multiple columns and rows of widgets. - New Fl_Flex class to layout one row or one column of widgets. - New Fl::keyboard_screen_scaling(0) call stops recognition of ctrl/+/-/0/ keystrokes as scaling all windows of a screen. @@ -51,6 +52,8 @@ Changes in FLTK 1.4.0 Released: ??? ?? 2022 - New Fl_ICO_Image class to read Windows .ico icon files. - New classes Fl_SVG_File_Surface and Fl_EPS_File_Surface to save any FLTK graphics to SVG or EPS files, respectively. + - New member functions Fl_Window::maximize(), Fl_Window::un_maximize() and + Fl_Window::maximize_active() to programmatically manage window maximization. - Fl_Button now supports a compact flag that visually groups closely set buttons into keypads. - Fl_Tabs widget now supports close buttons for individual tabs. diff --git a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H index 974f9060d..7d208e429 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H +++ b/src/drivers/WinAPI/Fl_WinAPI_Window_Driver.H @@ -103,7 +103,7 @@ public: void fullscreen_off(int X, int Y, int W, int H) FL_OVERRIDE; void maximize() FL_OVERRIDE; void un_maximize() FL_OVERRIDE; - virtual bool maximize_needs_hide() FL_OVERRIDE { return true; } + bool maximize_needs_hide() FL_OVERRIDE { return true; } void iconize() FL_OVERRIDE; void decoration_sizes(int *top, int *left, int *right, int *bottom) FL_OVERRIDE; // --- window cursor stuff