Notification from SWIPELIST

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

  • Notification from SWIPELIST

    Hello,

    I'm trying to catch WM_NOTIFICATION_RELEASED and WM_NOTIFICATION_SEL_CHANGED
    from SWIPELIST widget, but failing. I can get WM_NOTIFICAITON_CLICKED message
    when I press a item in the SWIPELIST.

    I can see that bgcolor changed blue to black when I move or release my finger on the screen,
    so it looks de-select the item is working, but I'm not able to receive WM_NOTIFICATION_RELEASED
    /WM_NOTIFICATION_SEL_CHANGED on the parent window.

    Is there any clue to enable those two notifications on the SWIPELIST?

    I'm using STemWin 5.40.

    Regards,

    Tosh
  • Hi,

    Attached is a short example on how to react on the swipelist notifications.

    The WM_NOTIFICATION_SEL_CHANGED doesn't realy makes sense so I left it out. If you want to react on it simply add another case to the callback function.
    WM_NOTIFICATION_SEL_CHANGED gets only send if the pointer input (or touch) leaves the selected item.

    Regards
    Sven
    Files