Fix showing slider label in wxMSW when wxSL_MIN_MAX_LABELS was not used.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 11 Jul 2011 22:49:33 +0000 (22:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 11 Jul 2011 22:49:33 +0000 (22:49 +0000)
commit16e79d48793b5be3cd7b98c12663de336f064dcf
treef9cb70620f64e824c3d896afb06ec7b84d6b62f4
parent5db9025368736064284d2c80f56f341ab6fd2261
Fix showing slider label in wxMSW when wxSL_MIN_MAX_LABELS was not used.

wxSlider with wxSL_LABELS style but without wxSL_MIN_MAX_LABELS didn't show
the current value because the width of the value label was 0.

Fix this by always computing the widths of min and max labels and using the
longest of them for the value label, even if we don't actually show them.

Closes #13291.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/msw/slider.h
src/msw/slider.cpp