cancel
Showing results for 
Search instead for 
Did you mean: 

STemWin and Cursor Invalidation

sarhangpour
Associate II
Posted on August 18, 2014 at 07:41

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
0 REPLIES 0