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| Name | Type | Description |
|---|---|---|
| p1 | REAL | Returns coordinates of first user click. |
| p2 | REAL | Returns coordinates of second user click. |
In Python this function will NOT block execution. It will execute a callback function with the resulted rectangle (two points as callback function parameters).
on sample is similar to the sample in GetPt.
VS Functions: GetPt | GetPtL | GetPt3D | GetPtL3D | GetLine | GetLine3D | GetRect | GetRect3D | TrackObject
Availability: from All Versions