Hello!
Can anyone show me how to use the callback of a BUTTON to continuously increment a variable when the BUTTON is continually pressed?
Description:
1) I created a button (that works well)
2) It changes bitmap based on WM_NOTIFICATION_CLICKED and WM_NOTIFICATION_RELEASED (that works well)
3) Initially I wanted my variable (Count) to increment upon: WM_NOTIFICATION_RELEASED (that works)
case WM_NOTIFICATION_RELEASED:
Count++;
4) Now I need to have Count continuously increment as long as BUTTON is kept in the PRESSED state. Just like a normal keyboard: aaaaaaaaaaaaaaaaaaaaaaaaaaa
Can you show me how to do that please?
Thanks
E4M
Can anyone show me how to use the callback of a BUTTON to continuously increment a variable when the BUTTON is continually pressed?
Description:
1) I created a button (that works well)
2) It changes bitmap based on WM_NOTIFICATION_CLICKED and WM_NOTIFICATION_RELEASED (that works well)
3) Initially I wanted my variable (Count) to increment upon: WM_NOTIFICATION_RELEASED (that works)
case WM_NOTIFICATION_RELEASED:
Count++;
4) Now I need to have Count continuously increment as long as BUTTON is kept in the PRESSED state. Just like a normal keyboard: aaaaaaaaaaaaaaaaaaaaaaaaaaa
Can you show me how to do that please?
Thanks
E4M