set_tshapeT_set_tshapeSetTshapeSetTshapeset_tshape (算子)

名称

set_tshapeT_set_tshapeSetTshapeSetTshapeset_tshape — 设置文本光标的形状。

警告

set_tshapeset_tshapeSetTshapeSetTshapeSetTshapeset_tshape 已过时,仅出于向后兼容性考虑而保留。

签名

set_tshape( : : WindowHandle, TextCursor : )

Herror T_set_tshape(const Htuple WindowHandle, const Htuple TextCursor)

void SetTshape(const HTuple& WindowHandle, const HTuple& TextCursor)

void HWindow::SetTshape(const HString& TextCursor) const

void HWindow::SetTshape(const char* TextCursor) const

void HWindow::SetTshape(const wchar_t* TextCursor) const   ( Windows only)

static void HOperatorSet.SetTshape(HTuple windowHandle, HTuple textCursor)

void HWindow.SetTshape(string textCursor)

def set_tshape(window_handle: HHandle, text_cursor: str) -> None

描述

set_tshapeset_tshapeSetTshapeSetTshapeSetTshapeset_tshape sets the shape and the display mode of the text cursor of the output window.

A text cursor marks the current position for text output. It is different from the mouse cursor (although both will be called 'cursor', if the context makes misconceptions impossible). The available shapes for the text cursor can be queried with query_tshapequery_tshapeQueryTshapeQueryTshapeQueryTshapequery_tshape

执行信息

参数

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (输入控制)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

窗口句柄。

TextCursorTextCursorTextCursorTextCursortextCursortext_cursor (输入控制)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name of cursor shape.

默认值: 'invisible' "invisible" "invisible" "invisible" "invisible" "invisible"

结果

set_tshapeset_tshapeSetTshapeSetTshapeSetTshapeset_tshape returns 2 ( H_MSG_TRUE) if the window is valid and the given cursor shape is defined for this window.否则将抛出异常。

可能的前趋

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, query_tshapequery_tshapeQueryTshapeQueryTshapeQueryTshapequery_tshape, get_tshapeget_tshapeGetTshapeGetTshapeGetTshapeget_tshape

可能的后继

write_stringwrite_stringWriteStringWriteStringWriteStringwrite_string, read_stringread_stringReadStringReadStringReadStringread_string

另见

get_tshapeget_tshapeGetTshapeGetTshapeGetTshapeget_tshape, query_tshapequery_tshapeQueryTshapeQueryTshapeQueryTshapequery_tshape, write_stringwrite_stringWriteStringWriteStringWriteStringwrite_string, read_stringread_stringReadStringReadStringReadStringread_string

模块

基础