Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.21 KB

File metadata and controls

45 lines (36 loc) · 1.21 KB

GetRect

Description

Procedure GetRect draws a temporary "rubberband" rectangle onscreen, similar to a selection marquee. The user defines the rectangle by selecting two points which define the top left and bottom right of the rectangle. This cannot be used if there is a function anywhere in the calling chain.

PROCEDURE GetRect(
				VAR p1X,p1Y : REAL;
				VAR p2X,p2Y : REAL);
def vs.GetRect(callback):
    return None

Parameters

Name Type Description
p1 REAL Returns coordinates of first user click.
p2 REAL Returns coordinates of second user click.

Remarks

In Python this function will NOT block execution. It will execute a callback function with the resulted rectangle (two points as callback function parameters).

Examples

on sample is similar to the sample in GetPt.

See Also

VS Functions: GetPt | GetPtL | GetPt3D | GetPtL3D | GetLine | GetLine3D | GetRect | GetRect3D | TrackObject

Version

Availability: from All Versions

Category