Listview: no touch screen

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

    • Listview: no touch screen

      Hello,
      I have a listview where I just want to show data with a background color of my choice. I want to avoid the cells to color themself every time I touch on one of them. I tried with LISTVIEW_EnableCellSelect(hItem, 0) but the cells still light up if touched.

      Any other way to do so?
      thanks!
    • Hi,

      You can change the background and the text color of the LISTVIEW items to the color used for an unselected items.

      Try to configure your LISTVIEW like this (hItem is the handle of the LISTVIEW):

      C Source Code

      1. LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_SELFOCUS, GUI_WHITE);
      2. LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_SEL, GUI_WHITE);
      3. LISTVIEW_SetTextColor(hItem, LISTVIEW_CI_SELFOCUS, GUI_BLACK);
      4. LISTVIEW_SetTextColor(hItem, LISTVIEW_CI_SEL, GUI_BLACK);


      But this way you won't see which item is selected.

      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.