我正在使用Delphi7。
我知道我可以在 TMonthCalendar 的 OnGetMonthInfo 事件中使用 BoldDays 来传递我想以粗体显示的天数。
我的问题是,如果保存了新的日历条目,我无法手动调用 OnGetMonthInfo 事件。
使用
MyCalendar.Date:=IncMonth(MyCalendar.Date, -1);
MyCalendar.Date:=IncMonth(MyCalendar.Date, 1);
会刷新日历和加粗的月份,但在 Vista 和 Windows7 下这会产生令人讨厌的日历“滚动”效果。
有没有办法在没有“特殊效果”的情况下更新它?
谢谢!