summaryrefslogtreecommitdiff
path: root/src/Fl_win32.cxx
AgeCommit message (Collapse)Author
2024-06-01 Fix: Zero-sized borderless window causes high cpu usage on windows (#985)ManoloFLTK
2024-05-27Remove useless Fl_Window_Driver accessors after new member ↵ManoloFLTK
Fl_Window::get_size_range()
2024-04-04Improve use of fl_create_print_window() under WindowsManoloFLTK
2024-03-01Windows: fix moving window with Windows+Shift+arrow (#919)ManoloFLTK
2024-03-01Windows: fix issue if moving window back & forth across screens (#919)ManoloFLTK
2024-03-01Windows: make Ctrl/+/-/0/ scaling system-wide if all screens have same DPIManoloFLTK
2024-02-28Fix a typo and the URL to an STR in a commentAlbrecht Schlosser
no code changes
2023-11-05Add Fl_Window::maximize() and Fl_Window::un_maximize()ManoloFLTK
2023-08-13Handle shift + mousewheel event on Windows (STR 3521)Albrecht Schlosser
Pressing the shift key while using the mousewheel changes horizontal to vertical scrolling and vice versa. This allows users with a standard mouse with only one scrollwheel to use it for both scrolling directions. Note: other mice that have either two buttons or a scroll ball can generate both horizontal and vertical scrolling in one action. This commit does not affect such behavior. This patch is different than the one in file 'scroll.patch' (STR 3521). It takes care of distinct mousewheel delta calculation for vertical and horizontal mousewheels and avoids the "fallthrough" case. Note: macOS takes care of this, there's no special handling required. To do: the Wayland platform still needs to be updated.
2023-05-09Fix doxygen doc generation and document platform specific filesAlbrecht Schlosser
Pure platform specific files like 'src/*_win32.cxx' are excluded from doxygen processing and don't need doxygen specific guard macros. Document this fact prominently at the beginning of each file. Fix exclude patterns and remove duplicates from Doxyfile.in.
2023-04-30Undid old change in Windows code that causes undesired results (STR 1115)Matthias Melcher
Windows created when another window was grab()'d would always become dependents under WIN32, hiding them when the grabbed window was hidden.
2023-02-13Allow scaled image in Fl_Window::cursor(const Fl_RGB_Image *, int, int)ManoloFLTK
2023-02-10Remove dead code and comments (Windows only)Albrecht Schlosser
Most of the old code was a leftover of STR 3454 (which fixed winsock issues). Also removed an old comment about usage of Windows WSAAsyncSelect() and why it had been removed (related to Windows socket functions).
2023-02-10Fix typos in documentation and commentsAlbrecht Schlosser
(no code changes)
2023-01-13Fix for "Rename Fl_X* Fl_Window::i private class member" (#223)ManoloFLTK
2023-01-13 Fix for "Screen resolution change (win32)" (#651)ManoloFLTK
2023-01-09Virtual member Fl_Window_Driver::makeWindow() now returns voidManoloFLTK
2022-12-10"Public members Fl::awake_ring_*_ should be private" (#559) - cont'dManoloFLTK
2022-12-09Fix for "Public members Fl::awake_ring_*_ should be private" (#559)ManoloFLTK
2022-10-06Make Windows-specific HICON-using functions visible in doc.ManoloFLTK
2022-09-17Allow use of Fl_Window::default_icon() with a scaled image - Part 2.ManoloFLTK
Default icons are handled according to their scaled size, if there scaled.
2022-09-12Allow use of Fl_Window::default_icon() with a scaled image.ManoloFLTK
2022-08-29Make hybrid Wayland/X11 platform.ManoloFLTK
2022-06-19Move input method support to Fl_Screen_Driver from Fl_Graphics_DriverManoloFLTK
2022-03-20 Fix issue #413: Commit 29d9e31 creates memory handling problem under macOS.ManoloFLTK
2022-03-01Simplify internal Fl_WinAPI_Window_Driver::fake_X_wm() methodAlbrecht Schlosser
Add optional arguments 'style' and 'styleEx' to fake_X_wm(). Remove static function fake_X_wm_style() and include its code in the Window driver method Fl_WinAPI_Window_Driver::fake_X_wm(). This removes some calls and function arguments.
2022-03-01Fix default size_range() calculation (issue #392, STR 3352)Albrecht Schlosser
2022-02-21Remove obsolete/disabled "boxcheat" codeAlbrecht Schlosser
Windows platform: Remove comments about obsolete code and one exported declaration of the variable 'fl_background_pixel' which is used only on the X11 platform. X11 platform: Remove comments. Other platforms: not affected.
2022-02-03Rearrange "Print Button Window" functionsAlbrecht Schlosser
- Rename Fl_Screen_Driver::print_or_copy_window() to fl_print_or_copy_window() - Add header file src/print_button.h - Update dependencies
2022-02-03Reorganize classes Fl_System_Driver and Fl_Screen_DriverManoloFLTK
These virtual members are moved from Fl_Screen_Driver to Fl_System_Driver - wait(double) - ready() These virtual members are moved from Fl_System_Driver to Fl_Screen_Driver - copy(const char *stuff, int len, int clipboard, const char *type) - void paste(Fl_Widget &widget, int clipboard, const char *type) - clipboard_contains(const char *type) - clipboard_notify_change() These members are moved from Fl_X11_Screen_Driver to Fl_X11_System_Driver - poll_or_select_with_delay(double time_to_wait) - poll_or_select() and are made virtual in preparation for the introduction of class Fl_Unix_System_Driver.
2022-01-31Consolidate timeout handling across platforms (#379)Albrecht Schlosser
Add Fl_Timeout class Move platform independent code of Fl::wait() to main part - basic timeout handling - Fl::run_checks() - Fl::run_idle() - Fl::idle() - waiting time calculation (next timeout) - remove platform dependent "screen driver" stuff
2022-01-16Rename FL/fl_string.h to FL/fl_string_functions.hAlbrecht Schlosser
This is part 1 of the final fix for a previous name clash on case insensitive file systems (fl_string.h vs. Fl_String.H).
2022-01-07Add virtual void Fl_Graphics_Driver::set_status() and implement for X11 ↵ManoloFLTK
platform.
2021-12-19Fix for issue #344 : New/Delete Type Mismatch on WindowsManoloFLTK
2021-12-11Win32 platform: add support of "PROCESS_PER_MONITOR_DPI_AWARE" set via manifest.ManoloFLTK
2021-12-11Win32 platform: allow use of manifest to set the app's DpiAwareness level.ManoloFLTK
This fixes issue #309: FLTK 1.4 does not properly size window when using display scaling on Windows 10. FLTK now tests whether the app's DpiAwareness has been previously set, presumably via a manifest, before attempting to set it to FLTK's preferred level DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2
2021-12-05Fixes STR #3352: "tiny window problem if child group larger than window"Greg Ercolano
2021-11-19Refactor and improve "Print front window" dialogAlbrecht Schlosser
src/print_button.cxx: "Print front window" implementation (new file) This is compiled and activated if USE_PRINT_BUTTON is defined. The feature can be fine controlled by environment variable 'FLTK_PRINT_BUTTON' (see docs in source file).
2021-05-31Windows platform: use GDI+ to antialias oblique lines and curves.ManoloFLTK
2021-05-07Fix MSVC 2010 and older not finding round()Albrecht Schlosser
Actually we don't know about some newer MSVC versions, but current version MSVC 2019 works fine w/o defining round(). If other MSVC versions need this as well we can change the version test or add a compiler feature test to CMake (configure not required).
2021-02-16Use <config.h> when appropriate.ManoloFLTK
2021-02-15PR #174: Skip the call to MonitorFromRect when it is not needed.ManoloFLTK
2021-02-13Remove compilation warnings issued by Visual Studio 2019.ManoloFLTK
2021-02-10Windows scaling support: fix after WM_MOVE and in mouse_event()ManoloFLTK
The fix in mouse_event() makes sure the scale factor of the receiving window is correct when distinct screens have distinct scale factor values. The fix after WM_MOVE event makes sure a subwindow-containing window in a multiple-screen desktop having distinct scale factor values is correctly rescaled.
2021-01-25Windows: fix scaling problem in Fl_Tile.ManoloFLTK
The problem was visible with test/tile for fractional scaling values when moving the vertical division.
2020-12-03Windows scaling: fix redraw after partial expose events.ManoloFLTK
Under XP (at least), WM_PAINT events occur where information of where to redraw is mostly given by the system, in the window's update region. When the GUI is scaled, that information must be un-scaled and then added to Fl_X::i(window)->region, for the adequate part of the window to be painted.
2020-12-01Windows scaling: fix computation of border sizes.ManoloFLTK
The corrected error was to use, e.g., int dx = W - w->w() * s; which does not produce the desired integer value. The correct writing is : int dx = W - int(w->w() * s);
2020-11-29 Fix for issue #123 - Windows platformManoloFLTK
2020-11-29Windows: fix undrawn pixels at right and bottom of scaled windows.ManoloFLTK
2020-08-01Implement + deploy fl_strdup()Greg Ercolano