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)
Changed 2 years ago by joim
comment:6 Changed 23 months ago by bmw
- Resolution fixed deleted
- Status changed from closed to reopened