03-02-2025, 10:23 PM
Hello micheus,
I notice that when I bring the cursor towards the window, it becomes a resize cursor up to about 7 pixels on the left, bottom and right (but not the top, it starts at the title bar).
It might be that the window borders for (some?) apps in recent windows versions is invisible, and setSize sets the size of this window with its decoration, which would have been a thick border in older windows but is now transparent.
It might help to compensate by adding the extra decoration border thickness into setSize, then the window will be a little bit bigger.
The size of the (invisible) border can found with wxSystemSettings::GetMetric() I think:
https://erlang.org/documentation/doc-16-...etMetric/1
Probably wxSYS_EDGE_X and wxSYS_EDGE_Y will contain the information.
https://docs.wxwidgets.org/3.2/settings_...ac6f273cc4
I notice that when I bring the cursor towards the window, it becomes a resize cursor up to about 7 pixels on the left, bottom and right (but not the top, it starts at the title bar).
It might be that the window borders for (some?) apps in recent windows versions is invisible, and setSize sets the size of this window with its decoration, which would have been a thick border in older windows but is now transparent.
It might help to compensate by adding the extra decoration border thickness into setSize, then the window will be a little bit bigger.
The size of the (invisible) border can found with wxSystemSettings::GetMetric() I think:
https://erlang.org/documentation/doc-16-...etMetric/1
Probably wxSYS_EDGE_X and wxSYS_EDGE_Y will contain the information.
https://docs.wxwidgets.org/3.2/settings_...ac6f273cc4