and
pageY
, which are relative to the top-left corner of the whole document
(which may be different when the window has been scrolled).
The following implements a primitive drawing program. Every time you
click the document, it adds a dot under your mouse pointer. See
Chapter 19
for a less primitive drawing program.
Do'stlaringiz bilan baham: