]> git.saurik.com Git - wxWidgets.git/commit - include/wx/generic/statusbr.h
Update the field widths on demand in wxStatusBarGeneric.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 May 2012 11:22:09 +0000 (11:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 5 May 2012 11:22:09 +0000 (11:22 +0000)
commit8e8d910979bd7c3c1dada49e87645a81d04e682e
treef4b1e242f83c40768931f12de73faa7945dfbe7f
parent71940de69327007b5ac55aa8dc45221599744bef
Update the field widths on demand in wxStatusBarGeneric.

This ensures that the value returned from GetFieldRect() is always up to date,
even when this method is called from the user-defined wxEVT_SIZE handler, i.e.
before our own OnSize() could run.

Also remove the now unneeded hack with calling the base class OnSize() from
the statbar sample.

Closes #14268.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/statusbr.h
samples/statbar/statbar.cpp
src/generic/statusbr.cpp