ListBox Item not shown

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

  • ListBox Item not shown

    Hi EmWin users,

    I'm using ListBox to show menu list with OwnerDraws. In some cases, some of menuitems shall not be shown to user.
    I tried LISTBOX_SetItemdisabled() but it shows the item. I want to make it disappear and not to affect IncSel() and DecSel() APIs.
    How can it make it totally disappear ?

    Thanks
    Regards
  • Hi,

    To delete an item from the listbox you might want to use LISTBOX_DeleteItem().

    C Source Code

    1. void LISTBOX_DeleteItem(LISTBOX_Handle hObj, unsigned int Index);


    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.