ClassesClassesClassesClasses | | | | Operators

move_rectanglemove_rectangleMoveRectanglemove_rectangleMoveRectangleMoveRectangle (Operator)

Name

move_rectanglemove_rectangleMoveRectanglemove_rectangleMoveRectangleMoveRectangle — Copy inside an output window.

Signature

move_rectangle( : : WindowHandle, Row1, Column1, Row2, Column2, DestRow, DestColumn : )

Herror move_rectangle(const Hlong WindowHandle, const Hlong Row1, const Hlong Column1, const Hlong Row2, const Hlong Column2, const Hlong DestRow, const Hlong DestColumn)

Herror T_move_rectangle(const Htuple WindowHandle, const Htuple Row1, const Htuple Column1, const Htuple Row2, const Htuple Column2, const Htuple DestRow, const Htuple DestColumn)

Herror move_rectangle(const HTuple& WindowHandle, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, const HTuple& DestRow, const HTuple& DestColumn)

void HWindow::MoveRectangle(const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, const HTuple& DestRow, const HTuple& DestColumn) const

void MoveRectangle(const HTuple& WindowHandle, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, const HTuple& DestRow, const HTuple& DestColumn)

void HWindow::MoveRectangle(const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, const HTuple& DestRow, const HTuple& DestColumn) const

void HWindow::MoveRectangle(Hlong Row1, Hlong Column1, Hlong Row2, Hlong Column2, Hlong DestRow, Hlong DestColumn) const

void HOperatorSetX.MoveRectangle(
[in] VARIANT WindowHandle, [in] VARIANT Row1, [in] VARIANT Column1, [in] VARIANT Row2, [in] VARIANT Column2, [in] VARIANT DestRow, [in] VARIANT DestColumn)

void HWindowX.MoveRectangle(
[in] VARIANT Row1, [in] VARIANT Column1, [in] VARIANT Row2, [in] VARIANT Column2, [in] VARIANT DestRow, [in] VARIANT DestColumn)

static void HOperatorSet.MoveRectangle(HTuple windowHandle, HTuple row1, HTuple column1, HTuple row2, HTuple column2, HTuple destRow, HTuple destColumn)

void HWindow.MoveRectangle(HTuple row1, HTuple column1, HTuple row2, HTuple column2, HTuple destRow, HTuple destColumn)

void HWindow.MoveRectangle(int row1, int column1, int row2, int column2, int destRow, int destColumn)

Description

move_rectanglemove_rectangleMoveRectanglemove_rectangleMoveRectangleMoveRectangle copies all entries in the rectangle (Row1Row1Row1Row1Row1row1,Column1Column1Column1Column1Column1column1), (Row2Row2Row2Row2Row2row2,Column2Column2Column2Column2Column2column2) of the output window to a new position inside the same window. This position is determined by the upper left corner (DestRowDestRowDestRowDestRowDestRowdestRow, DestColumnDestColumnDestColumnDestColumnDestColumndestColumn). Regions of the window, which are “uncovered” through moving the rectangle, are set to the color of the background.

If you want to move several rectangles at once, you may pass parameters in form of tuples.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Window identifier.

Row1Row1Row1Row1Row1row1 (input_control)  rectangle.origin.y(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Row index of upper left corner of the source rectangle.

Default value: 0

Typical range of values: 0 ≤ Row1 Row1 Row1 Row1 Row1 row1 ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

Column1Column1Column1Column1Column1column1 (input_control)  rectangle.origin.x(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Column index of upper left corner of the source rectangle.

Default value: 0

Typical range of values: 0 ≤ Column1 Column1 Column1 Column1 Column1 column1 ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

Row2Row2Row2Row2Row2row2 (input_control)  rectangle.corner.y(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Row index of lower right corner of the source rectangle.

Default value: 64

Typical range of values: 0 ≤ Row2 Row2 Row2 Row2 Row2 row2 ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

Column2Column2Column2Column2Column2column2 (input_control)  rectangle.corner.x(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Column index of lower right corner of the source rectangle.

Default value: 64

Typical range of values: 0 ≤ Column2 Column2 Column2 Column2 Column2 column2 ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

DestRowDestRowDestRowDestRowDestRowdestRow (input_control)  point.y(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Row index of upper left corner of the target position.

Default value: 64

Typical range of values: 0 ≤ DestRow DestRow DestRow DestRow DestRow destRow ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

DestColumnDestColumnDestColumnDestColumnDestColumndestColumn (input_control)  point.x(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Column index of upper left corner of the target position.

Default value: 64

Typical range of values: 0 ≤ DestColumn DestColumn DestColumn DestColumn DestColumn destColumn ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 1

Example (HDevelop)

* "Interactive" copy of a rectangle in the same window
draw_rectangle1(WindowHandle,L1,C1,L2,C2)
get_mbutton(WindowHandle,LN,CN,Button)
move_rectangle(WindowHandle,L1,C1,L2,C2,LN,CN)

Example (C)

/* "Interactive" copy of a rectangle in the same window */
draw_rectangle1(WindowHandle,&L1,&C1,&L2,&C2) ;
get_mbutton(WindowHandle,LN,CN,NULL) ;
move_rectangle(WindowHandle,L1,C1,L2,C2,LN,CN) ;

Example (HDevelop)

* "Interactive" copy of a rectangle in the same window
draw_rectangle1(WindowHandle,L1,C1,L2,C2)
get_mbutton(WindowHandle,LN,CN,Button)
move_rectangle(WindowHandle,L1,C1,L2,C2,LN,CN)

Example (HDevelop)

* "Interactive" copy of a rectangle in the same window
draw_rectangle1(WindowHandle,L1,C1,L2,C2)
get_mbutton(WindowHandle,LN,CN,Button)
move_rectangle(WindowHandle,L1,C1,L2,C2,LN,CN)

Example (HDevelop)

* "Interactive" copy of a rectangle in the same window
draw_rectangle1(WindowHandle,L1,C1,L2,C2)
get_mbutton(WindowHandle,LN,CN,Button)
move_rectangle(WindowHandle,L1,C1,L2,C2,LN,CN)

Example (HDevelop)

* "Interactive" copy of a rectangle in the same window
draw_rectangle1(WindowHandle,L1,C1,L2,C2)
get_mbutton(WindowHandle,LN,CN,Button)
move_rectangle(WindowHandle,L1,C1,L2,C2,LN,CN)

Result

If the window is valid and the specified parameters are correct move_rectanglemove_rectangleMoveRectanglemove_rectangleMoveRectangleMoveRectangle returns 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, open_textwindowopen_textwindowOpenTextwindowopen_textwindowOpenTextwindowOpenTextwindow

Alternatives

copy_rectanglecopy_rectangleCopyRectanglecopy_rectangleCopyRectangleCopyRectangle

See also

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, open_textwindowopen_textwindowOpenTextwindowopen_textwindowOpenTextwindowOpenTextwindow

Module

Foundation


ClassesClassesClassesClasses | | | | Operators