point(
point(
V
,
H
)

The point( function combines vertical and horizontal co-ordinates into a single binary value that describes the position of a point (see Graphic Coordinates).

Parameters

This function has two parameters:

v – is the vertical position of the point. All dimensions are in points (1 points =1/72 inch).

h – is the horizontal position of the point.

Description

The procedure below displays a message if you manage to click on a spot exactly 50 points from the top of the screen and 100 points from the left edge of the screen.

    if info("click") = point(50,100)
        message "You hit the secret spot!"
    else
        beep
    endif

See Also

- h( -- extracts the horizontal position from a point (see point(, Graphic Coordinates).
- v( -- returns the vertical position of a point (see point(, Graphic Coordinates).

History

Version | Status | Notes
10.0 | Updated | Carried over from Panorama 6.0, but *V* and *H* parameters can now be floating point values, not just integers. The result is now a binary value, not an intenger.