<<

Contents

Search

>>

 

MOVERECT

 

 

Function

 

 

Syntax:

MOVERECT(<Row>, <Column>, <Height in Rows>, <Width in Columns>, <Width>, <New Row>, <New Column>, <New Height in Rows>, <New Width in Columns> [,<Handle>])

 

<Row>

= <NUM-EXPRESSION>

<Column>

= <NUM-EXPRESSION>

<Height in Rows>

= <NUM-EXPRESSION>

<Width in Columns>

= <NUM-EXPRESSION>

<Width>

= <NUM-EXPRESSION>

<Row>

= <NUM-EXPRESSION>

<Column>

= <NUM-EXPRESSION>

<Height in Rows>

= <NUM-EXPRESSION>

<Width in Columns>

= <NUM-EXPRESSION>

<Handle>

= <NUM-EXPRESSION>

 

 

Meaning:

Moves a rectangle on screen which lies on position <Row>,<Column> and has the size <Height in Rows>, <Width in Columns> and the border width <Width>. If no rectangle is found matching these paramaters MOVERECT returns -1.

 

<Handle> specifies the window in which the rectangle is to be drawn. <Handle> can contain the window depth or the handle of a split window or a WINDOWCALL window. If the parameter <Handle> is missing, the rectangle is drawn on the current mask.

 

MOVERECT returns –1, if a non-existent rectangle is to be moved, otherwise it always returns 1.

 

Attention: MOVERECT has no effect when NOREPAINT is active.

 

Parameter:

Row

Row of upper left corner of the rectangle

Column

Column of upper left corner of the rectangle

Height in Rows

Height of rectangle in rows

Width in Columns

Width of rectangle in columns

Width

Width of the border in pixel

New Row

New row position of rectangle

New Column

New column position of rectangle

New Height in Rows

New height of rectangle

New Width in Columns

New width position of rectangle

Handle

Window depth or handle of a split window or handle of a WINDOWCALL Window

 

Sample:

/* Draw a red rectangle on position (5.5,10.25) with size (10,20) and

/* width = 3 pixel

H% = DRAWRECT(5.5,10.25,10,20,3,255,0,0)

...

/* Move the rectangle to position 7,12

H% = MOVERECT(5.5,10.25,10,20,3,7,12,10,20)

 

See also:

DRAWRECT