set_mshapeT_set_mshapeSetMshapeSetMshapeset_mshape (Operator)

Name

set_mshapeT_set_mshapeSetMshapeSetMshapeset_mshape — Set the current mouse pointer shape.

Warning

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

Signature

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

Description

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.

Execution Information

Parameters

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

Window handle.

CursorCursorCursorCursorcursorcursor (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Mouse pointer name.

Default value: 'arrow' "arrow" "arrow" "arrow" "arrow" "arrow"

Result

set_mshapeset_mshapeSetMshapeSetMshapeSetMshapeset_mshape returns the value 2 (H_MSG_TRUE) if the mouse pointer shape CursorCursorCursorCursorcursorcursor is defined for this window. Otherwise, an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, query_mshapequery_mshapeQueryMshapeQueryMshapeQueryMshapequery_mshape, get_mshapeget_mshapeGetMshapeGetMshapeGetMshapeget_mshape

See also

get_mshapeget_mshapeGetMshapeGetMshapeGetMshapeget_mshape, query_mshapequery_mshapeQueryMshapeQueryMshapeQueryMshapequery_mshape

Module

Foundation