Skip to main content

TcxCustomDateNavigator.OnCustomDrawContent Event

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

Declaration

property OnCustomDrawContent: TcxSchedulerDateNavigatorCustomDrawContentEvent read; write;

Remarks

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

Sender specifies the Date Navigator control.

ACanvas specifies the drawing surface.

AViewInfo returns ViewInfo information for rendering the calendar.

ADone specifies if built-in draw routines are executed. Set ADone to True, to prevent default code execution.

Note

if the Transparent property of the AViewInfo object is set to True within an OnCustomDrawContent event handler, the 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