Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxSchedulerDateNavigator.OnCustomDrawContent Event

In This Article

Occurs before the Date Navigator month(s)’ calendar(s) is drawn.

#Declaration

Delphi
property OnCustomDrawContent: TcxSchedulerDateNavigatorCustomDrawContentEvent read; write;

#Remarks

Implement the OnCustomDrawContent event handler to custom paint the Date Navigator month(s)’ calendar(s).

The Sender parameter specifies the Date Navigator component.

The ACanvas parameter specifies the drawing surface.

The AViewInfo parameter returns ViewInfo information for rendering the calendar.

The ADone parameter specifies if built-in draw routines are executed. Set ADone to True to prevent default painting from being performed.

Note

if the Transparent property of the AViewInfo object is set to True within an OnCustomDrawContent event handler, OnCustomDrawDayCaption and OnCustomDrawDayNumber event handlers will do transparent painting, if implemented. So, there is no need to set the Transparent property of the appropriate AViewInfo objects to True respectively within OnCustomDrawDayCaption and OnCustomDrawDayNumber event handlers. In any case, if you need to completely repaint shapes specified for OnCustomDrawDayCaption and OnCustomDrawDayNumber, just set the Transparent property of the appropriate AViewInfo objects to False within these event handlers.

See Also