set_tpositionT_set_tpositionSetTpositionSetTpositionset_tposition (算子)
名称
set_tpositionT_set_tpositionSetTpositionSetTpositionset_tposition — 设置文本光标的位置。
签名
描述
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 (输入控制) window → HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
窗口句柄。
RowRowRowRowrowrow (输入控制) point.y → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Row index of text cursor position.
默认值:
24
ColumnColumnColumnColumncolumncolumn (输入控制) point.x → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Column index of text cursor position.
默认值:
12
结果
set_tpositionset_tpositionSetTpositionSetTpositionSetTpositionset_tposition returns 2 (
H_MSG_TRUE)
if the window is valid.否则将抛出异常。
可能的前趋
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window
可能的后继
write_stringwrite_stringWriteStringWriteStringWriteStringwrite_string,
read_stringread_stringReadStringReadStringReadStringread_string
替代
new_linenew_lineNewLineNewLineNewLinenew_line
另见
read_stringread_stringReadStringReadStringReadStringread_string,
write_stringwrite_stringWriteStringWriteStringWriteStringwrite_string
模块
基础