If I want to change the image on rollover, does this mean I'm gonna
have to refresh the cell every single time?

Yes. It actually works pretty well once you get the hang of it.

What I do is onmousemove I store a property of whether the mouse is over my cell or not.
Then I do InvalidateCell(row, column) if the pic needs to change.
Then in the paint event, I check if it's my column and row and if my property says the mouse is in there and draw the appropriate graphic with

 g.DrawPicture mypicture, 0, 0

You probably don't want to call InvalidateCell(row, column) on every mousemove event but just the ones where you determine the mouse has entered or left your cell.


Hope this helps!
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to