RTFLabel Createdynamic / paint on canvas

  • Hello

    I would like to paint the RTF Text on a canvas (i would like to use it for drawing a hint window)
    Therefor my task is to generate a TRTFLAbel dynamically and get the width/height from it and paint it on a canvas

    I treid a WPTMemo but this didn't give me the correct width/height and so

    and a RTFLAbel i can't create dynamically (no otpion for that)

    has someone made this allready and can point me to the right direction?

    • Offizieller Beitrag

    The label does not have a CreateDynamic - TWPCustomRTFEdit has and is the tool to chose for dynamic painting. It behaves like a TWPRichText but is invisible, does not need a parent window and has all the API required for load and save.