View Issue Details

IDProjectCategoryView StatusLast Update
0000815JEDI VCL00 JVCL Componentspublic2003-05-21 08:21
Reporteruser199Assigned Touser199 
PrioritynoneSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformDelphi 5 (Update 1)OSWindows 2000 SP3OS Version2.1 Stable
Product Version2.00 
Target VersionFixed in Version 
Summary0000815: If TJvSpinEdit's initial value is -1, OnChange doesn't fire if first changed to 0.
DescriptionThis 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 InformationTo fix this problem, change the TJvCustomSpinEdit.Loaded method as follows:

procedure TJvCustomSpinEdit.Loaded;
begin
  inherited Loaded;
  FLCheckMinValue := True;
  FLCheckMaxValue := True;
  FOldValue := Value;         // Added
end;
TagsNo tags attached.

Activities

user199

2003-03-20 07:52

  ~0001833

I'll patch this tonight.

user199

2003-03-23 06:28

  ~0001844

Fix is now in CVS.

user199

2003-05-21 08:21

  ~0002100

I'm confident this fix is working well. Closed.

Issue History

Date Modified Username Field Change