View Issue Details

IDProjectCategoryView StatusLast Update
0003493JEDI VCL00 JVCL Componentspublic2006-02-09 14:13
ReporteresasseAssigned Toobones 
Status resolvedResolutionfixed 
PlatformPCOSWindowsOS VersionXP
Product Version3.10 
Target VersionFixed in Version3.20 
Summary0003493: JvValidateEdit CriticalPoint color doesn't work when you set value by code
DescriptionIn the JvValidateEdit, if you enable CriticalPoints and set the value by code it doesn't change the color of the font to reflect a critical point.
Steps To Reproduce1 - Put a JvValidateEdit in a form.
2 - Inside CriticalPoints property, set CheckPoint to cpMinValue.
3 - In Form's OnCreate, put something like:
  JvValidateEdit1.Value := -2000;
4 - Notice that the color didn't change to red, as it should be.
5 - Now click with the mouse above the edit and it will turn red.
TagsNo tags attached.



2006-02-09 13:55

administrator   ~0008536

Confirmed with D6 under XP Home and the latest CVS


2006-02-09 14:13

administrator   ~0008537

This is now fixed in CVS.
The fix consists in moving

    if (FCriticalPoints.CheckPoints <> cpNone) and
      (FDisplayFormat in [dfBinary, dfCurrency, dfFloat, dfHex, dfInteger, dfOctal, dfPercent, dfScientific, dfYear]) then

After all the calls to ChangeText in the DisplayMethod.

Issue History

Date Modified Username Field Change
2006-02-07 05:49 esasse New Issue
2006-02-09 13:55 obones Note Added: 0008536
2006-02-09 13:55 obones Status new => confirmed
2006-02-09 14:13 obones Status confirmed => resolved
2006-02-09 14:13 obones Resolution open => fixed
2006-02-09 14:13 obones Assigned To => obones
2006-02-09 14:13 obones Note Added: 0008537