set_mshapeT_set_mshapeSetMshapeSetMshapeset_mshape (算子)

名称

set_mshapeT_set_mshapeSetMshapeSetMshapeset_mshape — 设置当前鼠标指针形状。

警告

This operator does not work in an HDevelop graphics window opened with dev_open_window.

签名

set_mshape( : : WindowHandle, Cursor : )

Herror T_set_mshape(const Htuple WindowHandle, const Htuple Cursor)

void SetMshape(const HTuple& WindowHandle, const HTuple& Cursor)

void HWindow::SetMshape(const HString& Cursor) const

void HWindow::SetMshape(const char* Cursor) const

void HWindow::SetMshape(const wchar_t* Cursor) const   ( Windows only)

static void HOperatorSet.SetMshape(HTuple windowHandle, HTuple cursor)

void HWindow.SetMshape(string cursor)

def set_mshape(window_handle: HHandle, cursor: str) -> None

描述

set_mshapeset_mshapeSetMshapeSetMshapeSetMshapeset_mshape sets the shape of the mouse pointer for the window. A list of the names of all available mouse pointer shapes can be obtained by calling query_mshapequery_mshapeQueryMshapeQueryMshapeQueryMshapequery_mshape。The mouse pointer shape given by CursorCursorCursorCursorcursorcursor is used if the mouse pointer enters the window, irrespective of which window is the output window at present.

执行信息

参数

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

窗口句柄。

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

Mouse pointer name.

默认值: 'arrow' "arrow" "arrow" "arrow" "arrow" "arrow"

结果

set_mshapeset_mshapeSetMshapeSetMshapeSetMshapeset_mshape 返回值 2 ( H_MSG_TRUE) if the mouse pointer shape CursorCursorCursorCursorcursorcursor is defined for this window.否则,将抛出异常。

可能的前趋

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, query_mshapequery_mshapeQueryMshapeQueryMshapeQueryMshapequery_mshape, get_mshapeget_mshapeGetMshapeGetMshapeGetMshapeget_mshape

另见

get_mshapeget_mshapeGetMshapeGetMshapeGetMshapeget_mshape, query_mshapequery_mshapeQueryMshapeQueryMshapeQueryMshapequery_mshape

模块

基础