Skip to main content

TcxControl.ActiveCanvas Property

Provides access to the control’s GDI-based canvas.

Declaration

property ActiveCanvas: TcxCanvas read;

Property Value

Type
TcxCanvas

Remarks

This property returns the Canvas property value if the control has a handle (that is, a HandleAllocated function call returns True). Otherwise, the ActiveCanvas property returns a screen canvas.

Note

An opaque Direct3D context overlaps the control’s GDI-based canvas in DirectX render mode, and therefore, all draw operations performed via the Canvas property have no effect.

See Also