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
0003105 [JEDI VCL] 00 JVCL Components minor always 2005-07-22 03:19 2005-08-10 01:50
Reporter anonymous View Status public  
Assigned To obones
Priority normal Resolution fixed  
Status resolved   Product Version 3.00
Summary 0003105: Bolddays with year 0 error in TJvDatePickerEdit (all TJvCustomMonthCalendar descendants)
Description 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
Additional Information 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;
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007757)
obones (administrator)
2005-08-10 01:50

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


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