ClassesClassesClassesClasses | | | | Operators

set_tpositionset_tpositionSetTpositionset_tpositionSetTpositionSetTposition (Operator)


set_tpositionset_tpositionSetTpositionset_tpositionSetTpositionSetTposition — Set the position of the text cursor.


set_tposition( : : WindowHandle, Row, Column : )

Herror set_tposition(const Hlong WindowHandle, const Hlong Row, const Hlong Column)

Herror T_set_tposition(const Htuple WindowHandle, const Htuple Row, const Htuple Column)

Herror set_tposition(const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column)

void HWindow::SetTposition(const HTuple& Row, const HTuple& Column) const

void SetTposition(const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column)

void HWindow::SetTposition(Hlong Row, Hlong Column) const

void HOperatorSetX.SetTposition(
[in] VARIANT WindowHandle, [in] VARIANT Row, [in] VARIANT Column)

void HWindowX.SetTposition(
[in] Hlong Row, [in] Hlong Column)

static void HOperatorSet.SetTposition(HTuple windowHandle, HTuple row, HTuple column)

void HWindow.SetTposition(int row, int column)


set_tpositionset_tpositionSetTpositionset_tpositionSetTpositionSetTposition sets the position of the text cursor in the output window. The reference position is the upper left corner of an upper case character.

The position is measured in the image coordinate system. The position of the text cursor can be marked, e.g., by an underscore. The next text output in this window starts at the cursor position. The left end of the baseline for writing the following text string (not considering descenders) is placed on this position.

The position is changed by the output or input of text (write_stringwrite_stringWriteStringwrite_stringWriteStringWriteString, read_stringread_stringReadStringread_stringReadStringReadString) or by an explicit change of position by (set_tpositionset_tpositionSetTpositionset_tpositionSetTpositionSetTposition, new_linenew_lineNewLinenew_lineNewLineNewLine). In order to stop the display of the cursor, the operator set_tshapeset_tshapeSetTshapeset_tshapeSetTshapeSetTshape with the parameter ”invisible” can be used.



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

Window handle.

RowRowRowRowRowrow (input_control)  point.y HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Row index of text cursor position.

Default value: 24

ColumnColumnColumnColumnColumncolumn (input_control)  point.x HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Column index of text cursor position.

Default value: 12


set_tpositionset_tpositionSetTpositionset_tpositionSetTpositionSetTposition returns 2 (H_MSG_TRUE) if the window is valid. Otherwise an exception is raised.

Possible Predecessors


Possible Successors

write_stringwrite_stringWriteStringwrite_stringWriteStringWriteString, read_stringread_stringReadStringread_stringReadStringReadString



See also

read_stringread_stringReadStringread_stringReadStringReadString, write_stringwrite_stringWriteStringwrite_stringWriteStringWriteString



ClassesClassesClassesClasses | | | | Operators