[wxWidgets/wxWidgets] b72a48: Improve wxToolbar ToolPacking at high DPI

0 views
Skip to first unread message

VZ

unread,
Feb 11, 2026, 8:01:52 AM (11 days ago) Feb 11
to wx-co...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/wxWidgets/wxWidgets
Commit: b72a48b8a6f3a3519df4140337fedf818237a03b
https://github.com/wxWidgets/wxWidgets/commit/b72a48b8a6f3a3519df4140337fedf818237a03b
Author: Maarten Bent <Maart...@users.noreply.github.com>
Date: 2026-01-27 (Tue, 27 Jan 2026)

Changed paths:
M src/msw/toolbar.cpp

Log Message:
-----------
Improve wxToolbar ToolPacking at high DPI

Treat m_toolPacking as DPI independent, and scale it to the active DPI.
Also scale other hard-coded sizes to the active DPI.

Fixes #26038


Commit: 9f0235f268468a434cd2f1280984b4dd848f0735
https://github.com/wxWidgets/wxWidgets/commit/9f0235f268468a434cd2f1280984b4dd848f0735
Author: Maarten Bent <Maart...@users.noreply.github.com>
Date: 2026-01-29 (Thu, 29 Jan 2026)

Changed paths:
M src/msw/toolbar.cpp

Log Message:
-----------
Store wxMSW wxToolBar packing in logical pixels

Keep the public API consistent and the same as wxAuiToolBar::SetToolPacking().


Commit: a54a4392a47ff3b93cc3c51f7a04df9781150c8d
https://github.com/wxWidgets/wxWidgets/commit/a54a4392a47ff3b93cc3c51f7a04df9781150c8d
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-09 (Mon, 09 Feb 2026)

Changed paths:
M samples/text/text.cpp

Log Message:
-----------
Fix format specifiers used for size_t in text sample

Using "%lu" for size_t resulted in an assertion failure under Win64.

Also remove casts of size_t to "unsigned int", even if this worked, it
is ugly and using "%zu" is simpler.

And remove even more useless casts of int to long too.


Commit: 72447342ba92d972b030e89a27a3e7aa32f87794
https://github.com/wxWidgets/wxWidgets/commit/72447342ba92d972b030e89a27a3e7aa32f87794
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-09 (Mon, 09 Feb 2026)

Changed paths:
M samples/text/text.cpp

Log Message:
-----------
Show text state in text sample with a single wxLogMessage() call

This is easier to read than 3 different log messages.

Also group pieces of related information together.

No real changes.


Commit: 14687e2b0a6af13ed03135c8a0a7d9d8d5a24895
https://github.com/wxWidgets/wxWidgets/commit/14687e2b0a6af13ed03135c8a0a7d9d8d5a24895
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-10 (Tue, 10 Feb 2026)

Changed paths:
M samples/text/text.cpp

Log Message:
-----------
Remove hard coded controls positions and sizes from text sample

This was not only useless, because the controls were repositioned by the
sizers later anyhow, but also actively harmful in at least one case,
when creating a control with wxTE_MULTILINE and wxTE_NO_VSCROLL styles
with too small height prevented the text from being appended to it.

Closes #26177.


Commit: b270113885aa405b8212337c3d8a02131eed382e
https://github.com/wxWidgets/wxWidgets/commit/b270113885aa405b8212337c3d8a02131eed382e
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-10 (Tue, 10 Feb 2026)

Changed paths:
M include/wx/msw/textctrl.h
M src/msw/textctrl.cpp
M tests/controls/textctrltest.cpp

Log Message:
-----------
Fix GetValue() returning hint for wxMSW controls with wxTE_RICH

Override DoGetValue() in wxMSW wxTextCtrl and not GetValue() itself as
the base class version correctly takes the manually managed hints into
account, unlike the overridden version which only did this for plain
edit controls but not the rich edit ones.

Add a unit test to ensure that this bug remains fixed.

See #26176.


Commit: 3b01ebf5efa84505ef6e92858c3848c06189e87f
https://github.com/wxWidgets/wxWidgets/commit/3b01ebf5efa84505ef6e92858c3848c06189e87f
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-10 (Tue, 10 Feb 2026)

Changed paths:
M src/common/datetimefmt.cpp
M tests/datetime/datetimetest.cpp

Log Message:
-----------
Add forgotten support for %T to our own wxDateTime::Format() code

"%T" was only handled when strftime() could be used but not by our own
implementation, resulting in failing to handle it for format string
including both "%T" and one of the specifiers not supported by the
standard function, such as "%l" or several others when using MinGW.

Closes #26179.


Commit: 6fa122c02c84cce997e707f9c15d5200f2b4991c
https://github.com/wxWidgets/wxWidgets/commit/6fa122c02c84cce997e707f9c15d5200f2b4991c
Author: AliKet <AliDe...@yahoo.fr>
Date: 2026-02-10 (Tue, 10 Feb 2026)

Changed paths:
M src/qt/colordlg.cpp

Log Message:
-----------
wxQt: Add missing wxEVT_COLOUR_CHANGED event generation


Commit: 54180dd75bfd5f8b9f7a438120a85e3a2270326e
https://github.com/wxWidgets/wxWidgets/commit/54180dd75bfd5f8b9f7a438120a85e3a2270326e
Author: AliKet <AliDe...@yahoo.fr>
Date: 2026-02-10 (Tue, 10 Feb 2026)

Changed paths:
M include/wx/qt/window.h
M src/qt/window.cpp

Log Message:
-----------
wxQt: Override wxWindow::ClearBackground()

The base class version uses wxClientDC which doesn't work well when
used simultaneously with a wxPaintDC.


Commit: a5b101f7cb172fcc22cddd804587c86a791ba1d9
https://github.com/wxWidgets/wxWidgets/commit/a5b101f7cb172fcc22cddd804587c86a791ba1d9
Author: AliKet <AliDe...@yahoo.fr>
Date: 2026-02-10 (Tue, 10 Feb 2026)

Changed paths:
M src/common/prntbase.cpp

Log Message:
-----------
Remove unnecessary cast to wxScrolledWindow pointer

wxPreviewCanvas (the pointer type of m_previewCanvas) is in fact
a wxScrolledWindow anyhow.


Commit: 21bf245fc5403d70f06a826da621757b63f3c3ec
https://github.com/wxWidgets/wxWidgets/commit/21bf245fc5403d70f06a826da621757b63f3c3ec
Author: AliKet <AliDe...@yahoo.fr>
Date: 2026-02-10 (Tue, 10 Feb 2026)

Changed paths:
M samples/dialogs/dialogs.cpp
M src/common/prntbase.cpp

Log Message:
-----------
Remove unnecessary call to ClearBackground()

Calling ClearBackground() followed by a Refresh() doesn't make any sense
because ClearBackground() either a no-op (e.g. wxGTK) or just redundant
under (wxOSX and wxQt) or will be overwritten in wxMSW.


Commit: ceab6b93e42e56b8d8a58c7283ff336851f44465
https://github.com/wxWidgets/wxWidgets/commit/ceab6b93e42e56b8d8a58c7283ff336851f44465
Author: AliKet <AliDe...@yahoo.fr>
Date: 2026-02-10 (Tue, 10 Feb 2026)

Changed paths:
M interface/wx/frame.h
M interface/wx/print.h

Log Message:
-----------
Add documentation for wxFrame::SetWindowModality()


Commit: 4117a8e21d133cf43bf63ff2b901ba192d262b11
https://github.com/wxWidgets/wxWidgets/commit/4117a8e21d133cf43bf63ff2b901ba192d262b11
Author: AliKet <AliDe...@yahoo.fr>
Date: 2026-02-10 (Tue, 10 Feb 2026)

Changed paths:
M src/qt/stattext.cpp

Log Message:
-----------
wxQt: Fix dynamic ellipsizing of wxStaticText

Without this, the label is not correctly updated when resizing the control
as can be seen in the dialogs sample with wxInfoBar displayed. i.e.:

- Press Ctrl+I to display the wxInfoBar control.
- Press Ctrl+I again to show an ellipsized wxStaticText in the wxInfoBar.
- Try resizing the window.
- The wxStaticText is not updated correctly, unlike the other ports.


Commit: 62b4432dcf8538d30843387529717c772dfabbf5
https://github.com/wxWidgets/wxWidgets/commit/62b4432dcf8538d30843387529717c772dfabbf5
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-11 (Wed, 11 Feb 2026)

Changed paths:
M src/msw/toolbar.cpp

Log Message:
-----------
Merge branch 'msw-toolbar-packing-dpi' of github.com:MaartenBent/wxWidgets

Improve wxToolbar tool packing at high DPI.

See #26115.


Commit: 5748d2819a6887e2881fbe500460c27b29561e47
https://github.com/wxWidgets/wxWidgets/commit/5748d2819a6887e2881fbe500460c27b29561e47
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-11 (Wed, 11 Feb 2026)

Changed paths:
M include/wx/qt/window.h
M interface/wx/frame.h
M interface/wx/print.h
M samples/dialogs/dialogs.cpp
M src/common/prntbase.cpp
M src/qt/colordlg.cpp
M src/qt/stattext.cpp
M src/qt/window.cpp

Log Message:
-----------
Merge branch 'qt-some-fixes' of github.com:AliKet/wxWidgets

Miscellaneous wxQt fixes.

See #26166.


Commit: 0e3a3b8c55715c060741a0a95f822a75ad931d39
https://github.com/wxWidgets/wxWidgets/commit/0e3a3b8c55715c060741a0a95f822a75ad931d39
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-11 (Wed, 11 Feb 2026)

Changed paths:
M include/wx/msw/textctrl.h
M samples/text/text.cpp
M src/msw/textctrl.cpp
M tests/controls/textctrltest.cpp

Log Message:
-----------
Merge branch 'text-fixes'

Fixes for wxMSW wxTextCtrl and text sample.

See #26178.


Commit: d7fd467f18e210ebc2009d5a9f73c7c4556358dc
https://github.com/wxWidgets/wxWidgets/commit/d7fd467f18e210ebc2009d5a9f73c7c4556358dc
Author: Lauri Nurmi <lan...@iki.fi>
Date: 2026-02-11 (Wed, 11 Feb 2026)

Changed paths:
M include/wx/generic/textdlgg.h
M interface/wx/textdlg.h
M samples/dialogs/dialogs.cpp
M src/generic/textdlgg.cpp

Log Message:
-----------
Add wxTextEntryDialog::SetHint()

Sets the hint text for the underlying wxTextCtrl.

Closes #26176.


Commit: 9aa2abcd800776df5291925abfad670da537aafc
https://github.com/wxWidgets/wxWidgets/commit/9aa2abcd800776df5291925abfad670da537aafc
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-11 (Wed, 11 Feb 2026)

Changed paths:
M interface/wx/datetime.h

Log Message:
-----------
Improve documentation of POSIX extensions to strftime()

Mention that wxWidgets internal implementation may be used in this case
and replace the mention of MSVC (whose CRT now supports these
extensions) with MinGW.


Commit: 15850a5de59c19d606983754c338fa3dcf16dc28
https://github.com/wxWidgets/wxWidgets/commit/15850a5de59c19d606983754c338fa3dcf16dc28
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-02-11 (Wed, 11 Feb 2026)

Changed paths:
M interface/wx/datetime.h
M src/common/datetimefmt.cpp
M tests/datetime/datetimetest.cpp

Log Message:
-----------
Merge branch 'dt-format-t'

Add forgotten support for %T to our own wxDateTime::Format() code.

See #26180.


Compare: https://github.com/wxWidgets/wxWidgets/compare/acd8b7295ef0...15850a5de59c

To unsubscribe from these emails, change your notification settings at https://github.com/wxWidgets/wxWidgets/settings/notifications
Reply all
Reply to author
Forward
0 new messages