LISTWHEEL with semitransparent background

  • How can I get the selected item of a LISTWHEEL item to have a semi-transparent background color?

    I tried this:

    and the result is:

    [Blocked Image: https://s17.postimg.org/73dzfhw8f/semitransparent_List_Wheel.png]

    instead, I can get the text semi-transparent if I try to get it.

    best regards
    Max

  • Hi,

    Unfortunately, it is not that easy.

    If the LISTWHEEL gets created with the transparency flag set it will be completely transparent and does not fill its background.

    If you want a semi transparent background you have to set a owner draw function. Within that owner draw function you check for the item which background should be drawn. Then call GUI_EnableAlpha(1) to enable the use of the alpha bits of a color, perform a clear, and disable the use of the alpha bits again. After that call LISTWHEEL_OwnerDraw() to draw the rest of the widget.

    Here is an example on you this can be achieved.

    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: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!