Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004189 [JEDI VCL] 00 JVCL Components minor always 2007-07-29 09:26 2007-08-06 06:41
Reporter mcarro View Status public  
Assigned To obones
Priority normal Resolution fixed  
Status resolved   Product Version 3.30
Summary 0004189: tjvupdown fails when setting min/max
Description Setting min and max produces confusing effects because the Borland's ancestor (TCustomUpDown) has its own (private) copies of the member variables FMin and FMax that are not updated by the SetMin and SetMax methods in TJvCustomUpDown.

The problem shows (among other cases) when setting Min/Max to a value lower/greater than the default. For example after setting Max to 1000 (the default is 100) the Direction parameter of the OnChangingEx event will take the value updNone instead of updUp as it should when Position is between 100 and 999, etc.
Additional Information To solve the probleam SetMin and SetMax must update the ancestor properties before doing any processing, as in:

--- JvUpDown.pas 2007-07-29 11:36:38.493931200 -0300
+++ new\JvUpDown.pas 2007-07-29 11:22:12.000000000 -0300
@@ -257,6 +257,7 @@
 
 procedure TJvCustomUpDown.SetMax(const Value: Integer);
 begin
+ inherited Max := Value;
   if Value <> FMax then
   begin
     FMax := Value;
@@ -267,6 +268,7 @@
 
 procedure TJvCustomUpDown.SetMin(const Value: Integer);
 begin
+ inherited Min := Value;
   if Value <> FMin then
   begin
     FMin := Value;
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0013613)
obones (administrator)
2007-08-06 06:41

This is now fixed in SVN

- Issue History
Date Modified Username Field Change
2007-07-29 09:26 mcarro New Issue
2007-08-06 06:41 obones Status new => resolved
2007-08-06 06:41 obones Fixed in Version => Daily / SVN
2007-08-06 06:41 obones Resolution open => fixed
2007-08-06 06:41 obones Assigned To => obones
2007-08-06 06:41 obones Note Added: 0013613


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker