[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting mouse in TML Pascal II



Hi,

In the TML Pascal II manual it says this in the Graphics Textbook
Application chapter:
--
To be able to use QuickDraw it is necessary to include the name of
this module in the
USES clause of your program. When your program is executed, QuickDraw
will already be
initialised and ready for use. In addition, the Event Manager is also
available to monitor
actions performed by the activate mouse.
--

Not knowing how to do toolbox, the question is how? Do I need to know
the complete event model before I can read the current mouse X, Y? Or
is there some simple Mouse.X, Mouse.Y that I can read?

Any help appreciated.

PS: yes, I am still teaching my 8 years old son. He is now writing
simple text based program, very soon I will start to need to teach him
graphics, and he will ask me how to move the graphics on screen if he
moved the mouse. Please help!