#
CwSetSelectionRectangle

### Syntax:

    call CwSetSelectionRectangle nX, nY, nWidth, nHeight

            nX      (numeric) Horizontal coordinate of the top-left corner of the
                    selection rectangle

            nY      (numeric) Vertical coordinate of the top-left corner of the
                    selection rectangle

            nWidth  (numeric) Width of the selection rectangle

            nHeight (numeric) Height of the selection rectangle

### Description:

The selection rectangle is the rectangle normally created by selecting an object or occasionally, by clicking and dragging on a view window . It is used to select objects, define their initial size or pick the objects to add to a group. It can be set via the user interface, or by calling this procedure to set the selection rectangle to the rectangle describe by the parameters

The point nX, nY is actually the location of the center of the rectangle in the current unit. nWidth and nHeight are the width and height of the rectangle, also in the current unit. The current unit is stored in the "Unit" property of the application-defined object "Output Settings".

### Example:

    /* Load an object into a 2x2 rectangle at 2,1.*/
    call CwSetSelectionRectangle 2, 1, 2, 2
    call CwOverlayObject 'blart.orc'

Functions by NAME | Index | Functions by PURPOSE