- This topic has 2 replies, 2 voices, and was last updated 2021-05-08 at 8:18 pm by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Home › Forums › Konopka Signature VCL Controls (formerly Raize Components) › TRzCalendar Cell Colours.
Hi Ray,
Is it possible to individually change the colour (color) of individual date cells in TRzCalendar?
I’m using TRzCalendar as part of an appointment system and I’d like to make the date cells a different colour where there are appointments on those dates.
Thanks,
Steve
Hi Steve,
So sorry for the long delay. I hope you were able to locate the OnGetDayFormat event, which allows you to do what you wish. For example, the following event handler colors May 4 green in honor of Grogu (Baby Yoda).
procedure TForm7.RzCalendar1GetDayFormat(Sender: TObject; DayDate: TDateTime; Year, Month, Day: Word; var DayColor,
DayFontColor: TColor; var DayFontStyle: TFontStyles);
begin
if ( Month = 5 ) and ( Day = 4 ) then
begin
DayColor := clGreen;
DayFontColor := clWhite;
end;
end;
Ray
Hi Ray,
Yep, I worked in out.
Thanks,
Steve
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Stripe is a payment processing platform that enables businesses to accept online payments securely and efficiently.
Service URL: stripe.com (opens in a new window)