Developer

OnCustomDrawDate

Provides opportunity for additional drawing over cell with date inside calendar.

property OnCustomDrawDate: TNxCustomDrawDate read FOnCustomDrawDate write FOnCustomDrawDate;

Requirements


NextSuite 6.3.0

Remarks


This event occurs after OnGetDateColor event.

Example


procedure TForm1.NxDatePicker61CustomDrawDate(Sender: TObject; Date: TDateTime; DayRect: TRect); begin with NxDatePicker61.PopupControl.Canvas do begin if Date = IncDay(Yesterday, -1) then begin Pen.Color := clGreen; Brush.Color := clGreen; Polygon([ Point(DayRect.Left, DayRect.Top), Point(DayRect.Left + 5, DayRect.Top), Point(DayRect.Left, DayRect.Top + 5) ]); end; end; end;

See also