Skip to main content

TcxScheduler.OnCustomDrawBackground Event

Occurs before the scheduling area‘s background is drawn.

Declaration

property OnCustomDrawBackground: TcxSchedulerCustomDrawBackgroundEvent read; write;

Remarks

Implement the OnCustomDrawBackground event handler to custom paint the scheduling area’s background.

The Sender parameter specifies the time View currently active in the scheduling area.

The ACanvas parameter specifies the drawing surface.

The AViewInfo parameter returns ViewInfo information required to render the scheduler area background.

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

Note

the scheduling area’s background is only visible under the Day View when the View occupies a part of the scheduling area along the y-axis (the vertical scrollbar in the scheduling area disappears).

See Also