Project JEDI - Issue Tracker - JEDI VCL
Viewing Issue Advanced Details
3105 00 JVCL Components minor always 2005-07-22 03:19 2005-08-10 01:50
anonymous  
obones  
normal  
resolved 3.00  
fixed  
none    
none 3.10  
0003105: Bolddays with year 0 error in TJvDatePickerEdit (all TJvCustomMonthCalendar descendants)
Line in Bolddays with year 0 has no effect.

200501=01 -> new years day, only for 2005, ok
000001=01 -> for every years, no effect
Snippet 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;
Issue History
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

Notes
(0007757)
obones   
2005-08-10 01:50   
Thanks, this is now in CVS.