Multiple color in TEXT

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Multiple color in TEXT

    Hello .

    Is it possible with a widget TEXT, EDIT or MULTIEDIT to print a text with different color for different world like this :

    Hello, this is a multiple color effect


    I don't see any service for this kind of feature ?


    Thanks.

  • Hi,

    Unfortunately, this is not possible with one of these widgets (or at least not out of the box).

    The easiest way to achieve this might be to create a normal window and display the text in different colors inside. But it is up to you to decide at which point the color should be changed and/or set back.

    With widgets it is more tricky (except the TEXT widget) because you have to overwrite the callback function and have to take care about most of the widgets behavior.

    If I would do it I would choose the first way.

    Regards,
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.