Hi,
I have gone through the developers' guide several times and can't find the answer to this.
I
have a TDBPlannerCalendar on a form, along with a page control that has
3 tabs. The first 2 tabs have a TDBPlanner each to display day view and
week view respectively. The 3rd tab has a TDBPlannerMonthView.
How
do I programmatically set the start date for each of the planners? For
example, I want to set the day view to today's date, and the week view
to start from the first day of whatever week is selected.
For the month planner I'm doing it like this:
procedure TfrmMain.CalendarDaySelect(Sender: TObject; SelDate: TDateTime);
begin
DayPlanner.Caption.Title := FormatDateTime(FFormatSettings.LongDateFormat, SelDate);
MonthPlanner.Day := DayOf(SelDate);
MonthPlanner.Month := MonthOf(SelDate);
MonthPlanner.Year := YearOf(SelDate);
end;
begin
DayPlanner.Caption.Title := FormatDateTime(FFormatSettings.LongDateFormat, SelDate);
MonthPlanner.Day := DayOf(SelDate);
MonthPlanner.Month := MonthOf(SelDate);
MonthPlanner.Year := YearOf(SelDate);
end;
Thanks.