How to disable selection in Listview

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

  • How to disable selection in Listview

    Hi
    I like to show a tables of nodes upto 40. In STM32F7-Disco 4.3" TFT. I generated the Listview code in GUIbuilder, displayed the same in TFT Really good!! Thank you Segger team.

    When i touch the listview , the full row got selected and focused .

    My problem is, i dont want the selection feature. How can i disable it.
    Any one help me please.

    Thank you
    Images
    • listview.jpg

      41.1 kB, 712×198, viewed 592 times
  • Hi,

    You can use LISTVIEW_Callback to disable WM_TOUCH message handle to diasable it.


    LISTVIEW_cbDisableTouch(WM_MESSAGE *pMsg) {
    switch (pMsg->MsgId) {
    case WM_TOUCH:
    break;
    default:
    LISTVIEW_Callback(pMsg);
    break;
    }
    }
    ....
    WM_SetCallback(hListView, LISTVIEW_cbDisableTouch);