]> git.saurik.com Git - wxWidgets.git/commit - src/msw/spinctrl.cpp
Correct the initial value setting in wxMSW wxSpinCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 May 2012 14:24:20 +0000 (14:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 May 2012 14:24:20 +0000 (14:24 +0000)
commit6e36db5ecaca60f633fa3321b30feae863eaeecd
treeae5190eefffcea825a3e73f62f360c8079961f10
parent8087e6c94203a511ec26d870350c802bce16fa07
Correct the initial value setting in wxMSW wxSpinCtrl.

Always use value argument for the text control contents and also override the
initial numeric value with it if it's numeric.

This seems to be the only consistent thing to do, so document this behaviour
and add a unit test checking for it.

Closes #13589.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
interface/wx/spinctrl.h
src/msw/spinctrl.cpp
tests/controls/spinctrltest.cpp