Contents Previous Next Subchapters

Using The Mouse To Specify A Graphic Window Location
Syntax gcoord
See Also gcoord(x, y) and gaddwin

Description
Suspends O-Matrix execution until the button of the pointing device is pressed in the currently active graphic window. When the button is pressed, the relative coordinates within the window of the pointing device is returned.

Example
You can use this function to place text at a certain location within a graphic window. If you enter
     begin
          x = gcoord
          gaddtext("here", x)
     end
Note that the status bar of the O-Matrix application contains the words "Mouse Input". O-Matrix will put the word "here" on the first spot you select in the currently active graphic window.