set_tpositionT_set_tpositionSetTpositionSetTpositionset_tposition (算子名称)

名称

set_tpositionT_set_tpositionSetTpositionSetTpositionset_tposition — Set the position of the text cursor.

参数签名

set_tposition( : : WindowHandle, Row, Column : )

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

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

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

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

void HWindow.SetTposition(int row, int column)

def set_tposition(window_handle: HHandle, row: int, column: int) -> None

描述

set_tpositionset_tpositionSetTpositionSetTpositionSetTpositionset_tposition 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_stringWriteStringWriteStringWriteStringwrite_string, read_stringread_stringReadStringReadStringReadStringread_string) or by an explicit change of position by (set_tpositionset_tpositionSetTpositionSetTpositionSetTpositionset_tposition, new_linenew_lineNewLineNewLineNewLinenew_line). In order to stop the display of the cursor, the operator set_tshapeset_tshapeSetTshapeSetTshapeSetTshapeset_tshape with the parameter ”invisible” can be used.

运行信息

参数表

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

RowRowRowRowrowrow (input_control)  point.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row index of text cursor position.

Default: 24

ColumnColumnColumnColumncolumncolumn (input_control)  point.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column index of text cursor position.

Default: 12

结果

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

可能的前置算子

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window

可能的后置算子

write_stringwrite_stringWriteStringWriteStringWriteStringwrite_string, read_stringread_stringReadStringReadStringReadStringread_string

可替代算子

new_linenew_lineNewLineNewLineNewLinenew_line

参考其它

read_stringread_stringReadStringReadStringReadStringread_string, write_stringwrite_stringWriteStringWriteStringWriteStringwrite_string

模块

Foundation