View Issue Details

IDProjectCategoryView StatusLast Update
0005561JEDI VCL00 JVCL Componentspublic2011-09-21 11:39
ReporterbauratAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionsuspended 
Product Version3.40 
Target VersionFixed in Version 
Summary0005561: YearGrid.SetDateInfo does not work properly
DescriptionI'm trying to use YearGrid for a application at school. I want to display the days of a year where a student was not at school, so I want to call SetDateInfo for every day he was absent.

Unfortunately there are two problems:
1) the days displayed are shifted by 1 day. If I set March 23rd, then March 24th will be marked
2) sometimes there are invalid days marked: every time WD=1 in DateToCell, the wrong days are marked (see attached screenshots)
Additional InformationProblem 1:
In the example 2012, I marked the period of 1st to the 5th of every month. You can clearly see that YearGrid displays 2nd to 6th instead.
Same with example 2011 where 1st to 10th is marked, but 2nd to 11th is displayed.

Problem 2:
In example 2012, the dates of the months Jan, Apr, July are not displayed properly. The marked fields should be shifted 7 days to the right.
Same with example 2011, where only May is wrong (because it's the only month in 2011 where WD equals 1 in DateToCell procedure).
TagsNo tags attached.

Activities

2011-05-01 12:42

 

yeargrid.png (47,580 bytes)
yeargrid.png (47,580 bytes)

obones

2011-06-07 17:55

administrator   ~0018628

Please provide the zipped sources of a sample application showing this

obones

2011-09-21 11:39

administrator   ~0018910

No news, suspending the issue

Issue History

Date Modified Username Field Change
2011-05-01 12:42 baurat New Issue
2011-05-01 12:42 baurat File Added: yeargrid.png
2011-06-07 17:55 obones Note Added: 0018628
2011-06-07 17:55 obones Status new => feedback
2011-09-21 11:39 obones Note Added: 0018910
2011-09-21 11:39 obones Status feedback => resolved
2011-09-21 11:39 obones Resolution open => suspended
2011-09-21 11:39 obones Assigned To => obones