AnsweredAssumed Answered

STemWin and Cursor Invalidation

Question asked by Inductive on Aug 18, 2014
Hi,

I have a problem with touchscreen cursor:

When I move my finger on the touchscreen, although the cursor follows me, it remains its trace on the LCD. As if I'm drawing something, like in a Paint program. 

My deduction is that the cursor movement does not invalidate area it has been, so emWin does not redraw that area. I added:

WM_InvalidateArea(&myrect);

to the codes, myrect being a rect which covers around where cursor has been. But still there would be traces left uncleaned if I move the cursor fast.

What am I doing wrong? Isn't cursor trace clean up an automatic function?

Thanks,
Ali

Outcomes