TvPlanIt: Add event OnPrepareEventFont to TVpDayView, TVpWeekView and TVpMonthView. (https://forum.lazarus.freepascal.org/index.php/topic,61758.0.html).

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8667 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2022-12-31 12:55:15 +00:00
parent fcdd876a2b
commit 77c9810c0a
7 changed files with 61 additions and 39 deletions

View File

@ -566,6 +566,8 @@ begin
{$ENDIF}
if TVpMonthViewOpener(FMonthView).mvMonthDayArray[I].OffDay then
RenderCanvas.Font.Color := FMonthView.OffDayFontColor;
if Assigned(FMonthView.OnPrepareEventFont) then
FMonthView.OnPrepareEventFont(FMonthView, event, RenderCanvas.Font);
StrLen := RenderCanvas.TextWidth(Str);
if StrLen > WidthOf(TextRect) - txtMargin * 2 then