HEADER widget touch event

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

  • HEADER widget touch event

    Hi,
    is it possible to recognize on which Item of HEADER widget touch event happened?
    Following code in callback will handle touch events on whole HEADER, how to get particular Item?

    Source Code

    1. case ID_HEADER_0: // Notifications sent by 'Header'
    2. switch(NCode)
    3. {
    4. case WM_NOTIFICATION_CLICKED:
    5. break;
    6. case WM_NOTIFICATION_RELEASED:
    7. break;
    8. case WM_NOTIFICATION_MOVED_OUT:
    9. break;
    10. }
    11. break;
    Display All

    Your advice very appreciated
    Thanks
  • Hi Adrian,
    implemented that using HEADER_GetItemWidth() and HEADER_GetNumItems(), and then discovered in HEADER.h undocumented routine HEADER_GetSel() which is doing exactly what I need.
    Thanks
    Serge

    The post was edited 1 time, last by Serge ().

  • Hello Serge,

    Please note that functions which are not documented are basically not meant to be used. Anyway you can of course use not documented functions if they meet your expectation, but please understand that we in certain cases did not (yet) verify the correctness of the function.

    Best regards,
    Adrian