Files
wxWidgets/interface
Vadim Zeitlin 6c08a692a6 Restore sending wxEVT_AUINOTEBOOK_BUTTON events
This was broken by 48bf1ac (Rewrite event generation and propagation in
wxAuiNotebook, 2025-07-12), see #25634 and #25544.

Restore sending this event for the buttons and do it with the correct
page indexes now, i.e. using the logical page index and not its physical
position.

Also consistently allow the handler of this event to prevent the default
action from taking place if it doesn't call wxEvent::Skip(). This is not
100% backwards-compatible but is consistent and more useful.

Add a unit test checking that this works as expected.

Closes #26801.
2026-09-07 22:53:28 +02:00
..