|
|
| Reporter | user199 | Assigned To | user199 | |
|---|
| Priority | none | Severity | minor | Reproducibility | always |
|---|
| Status | closed | Resolution | fixed | |
|---|
| Platform | Delphi 5 (Update 1) | OS | Windows 2000 SP3 | OS Version | 2.1 Stable |
|---|
| Product Version | 2.00 | |
|---|
| Target Version | | Fixed in Version | | |
|---|
|
|
| Summary | 0000815: If TJvSpinEdit's initial value is -1, OnChange doesn't fire if first changed to 0. |
|---|
| Description | This applies to the 2.1 stable version, as well as the current one in CVS. Let's say you have a MinValue of -1 and a MaxValue of 9. And the Value is set to -1 in design mode. When you use the spinedit for the first time in runtime, and increment the number to 0, the OnChange event doesn't fire. But there's a simple solution: See Additional Information. |
|---|
| Additional Information | To fix this problem, change the TJvCustomSpinEdit.Loaded method as follows:
procedure TJvCustomSpinEdit.Loaded;
begin
inherited Loaded;
FLCheckMinValue := True;
FLCheckMaxValue := True;
FOldValue := Value; // Added
end;
|
|---|
| Tags | No tags attached. |
|---|
|
|