Allow closing wxAuiTabCtrl pages without switching to them.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Mar 2012 12:08:05 +0000 (12:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Mar 2012 12:08:05 +0000 (12:08 +0000)
commit20ebd9ffbf9d74413112414c3304d0035241d0be
treeef8f1534ac7e972f11c3df9cdd48f6615094ca71
parent22930be86cddbf792227bb471852c64b40f483f0
Allow closing wxAuiTabCtrl pages without switching to them.

Clicking on the page "x" close button switched to the page before doing
anything else which was unusual as other tabbed controls don't behave like
this.

Handle clicks on the close button specially and avoid switching to the page
which is about to be closed anyhow.

Closes #14150.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/aui/auibook.cpp