TSpinEdit doesn't keep the correct value if it's assigne the same value it already has
Original Reporter info from Mantis: luca @olivluca
-
Reporter name: Luca Olivetti
Original Reporter info from Mantis: luca @olivluca
- Reporter name: Luca Olivetti
Description:
On the OnShow handler of the form I assign a value to a SpinEdit.
If I assign the value that it already has, when the form finally shows I get what appears to be the MinValue insted of the assigned value. However if the value is different the spinedit shows the correct value.
Steps to reproduce:
Attached is a project with two forms. The first one has a button to show the second one. The second one has a TSpinEdit which is assigned the value 20 on the FormShow handler. Click the button on the main form and see the value on the spinedit. Every second time the value is 1 instead of 20.
Additional information:
As a workaround now I assign the value twice, making sure it is assigned a different value, e.g:
SpinEdit.Value:=NewValue+1;
SpinEdit.Value:=NewValue;
Mantis conversion info:
- Mantis ID: 989
- OS: Linux
- Version: 0.9.7 (CVS)
- Target version: 0.9.10