TMontCalendar seems to be a Windows wrapper so it can’t be affected by the new VCL Styles, do you know a solution for it ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
TMonthCalendaris wrapper for the MONTHCAL_CLASS and as far i know this control doesn’t support owner draw, but provides theCalColorsproperty which allow you to set the colors of the elements of the calendar, but this property only works when the themes is not enabled. So first you must call the SetWindowTheme function to disable the themes in the calendar and then you can set the colors to match with the vcl styles.Something like this
And the result will be this