[comp.windows.x] Drawing a ghost box

edy@andersen.com (Edy Liongosari) (05/18/91)

Hi X'ers,

I am quite new in using X. 
How can I implement a rectangle that moves following the mouse's position 
within a window?
Do I draw and undraw the rectangle everytime the mouse moves?

-Edy