I have equal behavior in 2 different projects.
in one of the projects several DB-planners will be combined with with TDBDaySource, settings for sources are:
AutoHeaderUpdate:= true;
DataSource := ds1;
DateFormat := 'dd.mm.yyyy';
Mode := dmMultiResource;
StartTimeField := 'STARTTIME';
EndTimeField := 'ENDTIME';
SubjectField := 'Location';
ResourceField := 'loginId';// 'ResourceId';
KeyField := 'KEYFIELD';
NotesField := 'Subject';
NumberOfDays := 1;
ReadOnly := true;
NumberOfResources := m_lEmployees.Count;
AutoHeaderUpdate:= true;
OnFieldsToItem := DBDaySrcFieldsToItem;
OnGetResourceName := DBDaySrcGetResourceName;
OnResourceToPosition := DBDaySrcResourceToPosition;
couple of items having an extra field set will be changed to background items inside FieldsToItem-function.
The database will be refreshed each xxx min, after the database refreshed GUI refresh will be forced by means of SynchDBItems call.
(because the tables will be cleaned and filled new partially)
All items except of background items will be processed correctly.
Background items (they will set as background so:
with item do
begin
CaptionType := ctNone;
Background := true;
AllowOverlap := true;
Alignment := taCenter;
Visible := true;
end;
)
Could you start with this information or do you need more input?