wxSpinCtrl ignores constructors initialize value when outside of default range (wxMSW)
|Reported by:||joim||Owned by:||vadz|
I tried to create a wxSpinCtrl by passing new min- and max-values and and a new initial value directly to the constructor (this is the way wxGetNumberFromUser () does it when creating its spin control).
But the initial value will be cut to 100 even if given max-value is bigger.
Operating system is Windows7.
The following line code shows the effect:
m_spinctrl = new wxSpinCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 16896L, 0, 300, 150);
Maybe this could be solved by changing the order of the commands
in the function Create () in file src/msw/spinctrl.cpp?
Change History (11)
comment:1 Changed 21 months ago by joim
- Component changed from GUI-all to wxMSW
- Version set to 2.9.4
Changed 20 months ago by joim
comment:5 Changed 20 months ago by VZ
- Resolution set to fixed
- Status changed from accepted to closed
comment:6 Changed 15 months ago by bmw
- Resolution fixed deleted
- Status changed from closed to reopened