Delphi FMX TCalendar – Disable Weekends


Is it possible to disable certain days from the FMX TCalendar component?
e.g. Weekends
It would also be good if they could be highlited that they are disabled e.g. days 14 and 15 in the image below

I can kind of get it disabled by adding a rectangle onto a listboxitemstyle with the hit test turned on
This is what i did for the image above

procedure TForm1.cal1DayClick(Sender: TObject);
var sTemp : String;
cal1.StylesData[‘days.Selected.StyleLookup’] := ‘ListBoxItemstyleCust’;

but i don’t know how to access the styleslistbox items on the creation of the item and even if this is the way i should be doing it

Comments are closed.