View Issue Details

IDProjectCategoryView StatusLast Update
0003105JEDI VCL00 JVCL Componentspublic2005-08-10 01:50
ReporteranonymousAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 
Target VersionFixed in Version3.10 
Summary0003105: Bolddays with year 0 error in TJvDatePickerEdit (all TJvCustomMonthCalendar descendants)
DescriptionLine in Bolddays with year 0 has no effect.

200501=01 -> new years day, only for 2005, ok
000001=01 -> for every years, no effect
Additional InformationSnippet from Help:
CalendarAppearance.Bolddays property is a list of dates that have a bold state. The items in this list should be in one of two formats:
1. 0000mm=daylist
2. yyyymm=daylist


To solve this in JvCalendar.pas change

// old
procedure TJvCustomMonthCalendar.CheckDayState(Year, Month: Word; var DayState: TMonthDayState);
begin
  DayState := StringToDayStates(
    TMonthCalStrings(FAppearance.BoldDays).GetBoldDays(Year, Month));
end;

to

// new
procedure TJvCustomMonthCalendar.CheckDayState(Year, Month: Word; var DayState: TMonthDayState);
begin
  DayState := StringToDayStates(
    TMonthCalStrings(FAppearance.BoldDays).GetBoldDays(Year, Month) + ',' +
    TMonthCalStrings(FAppearance.BoldDays).GetBoldDays(0, Month));
end;
TagsNo tags attached.

Activities

obones

2005-08-10 01:50

administrator   ~0007757

Thanks, this is now in CVS.

Issue History

Date Modified Username Field Change
2005-07-22 03:19 anonymous New Issue
2005-08-10 01:50 obones Status new => resolved
2005-08-10 01:50 obones Resolution open => fixed
2005-08-10 01:50 obones Assigned To => obones
2005-08-10 01:50 obones Note Added: 0007757