Canvas is not valid

  • Hi,

    I am working with an editor that was created with

    Code
    WPRTF := TWPCustomRTFEdit.CreateDynamic;

    So the editor has no Parent WinControl. After doing some routines I want to draw some graphics on the editors canvas. But doing so I receive the error that the element has no parent control.

    Where or how can I get a valid canvas to do some drawing on the editors canvas?

    Markus