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