Event "WM_NOTIFICATION_RELEASED" for ICONVIEW

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

  • Event "WM_NOTIFICATION_RELEASED" for ICONVIEW

    Hello,
    I'm using now different Menu with the ICONVIEW Widget.
    There I also have some Menu where I have a big space between the icons.
    At the moment I evaluate touch event on the INOVIEW in the following way:

    C Source Code

    1. case WM_NOTIFY_PARENT :
    2. NCode = pMsg->Data.v;
    3. Id = WM_GetId ( pMsg->hWinSrc );
    4. if ( Id == ID_ICONVIEW_0 )
    5. {
    6. switch ( NCode )
    7. {
    8. case WM_NOTIFICATION_RELEASED :
    9. Sel = ICONVIEW_GetSel ( pMsg->hWinSrc );
    10. if ( Sel == 0 )
    11. {
    12. TaskQueue_Enqueue ( EVENT_UPDATE_MENU );
    13. }
    14. else if ( Sel == 1 )
    15. {
    16. TaskQueue_Enqueue ( EVENT_UPDATE_MENU );
    17. }
    18. break;
    19. }
    20. }
    21. break;
    Display All

    But now I have the Problem that if I touch the display between the two icons then the left icon will be selcted. So I react on a event although I have not touched the icon.
    If this happen if there is only a space of some pixcel between the icons this would be no big problem. But now I have a space of about 100 Pixcel between!
    Is there any solution for this Problem?

    regards
    markus