HALCON Reference Manual 10.0.2
Table of Contents / Graphics / Mouse ClassesClassesClasses | | | Operators

set_mshapeset_mshapeset_mshapeSetMshapeSetMshape (Operator)

Name

set_mshapeset_mshapeset_mshapeSetMshapeSetMshape — Set the current mouse pointer shape.

Signature

set_mshape( : : WindowHandle, Cursor : )

Herror set_mshape(const Hlong WindowHandle, const char* Cursor)

Herror T_set_mshape(const Htuple WindowHandle, const Htuple Cursor)

Herror set_mshape(const HTuple& WindowHandle, const HTuple& Cursor)

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

void HOperatorSetX.SetMshape(
[in] VARIANT WindowHandle, [in] VARIANT Cursor)

void HWindowX.SetMshape([in] BSTR Cursor)

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

void HWindow.SetMshape(string cursor)

Description

set_mshapeset_mshapeset_mshapeSetMshapeSetMshape 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_mshapequery_mshapeQueryMshapeQueryMshape. The mouse pointer shape given by CursorCursorCursorCursorcursor is used if the mouse pointer enters the window, irrespective of which window is the output window at present.

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Window identifier.

CursorCursorCursorCursorcursor (input_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Mouse pointer name.

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

Result

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

Possible Predecessors

open_windowopen_windowopen_windowOpenWindowOpenWindow, open_textwindowopen_textwindowopen_textwindowOpenTextwindowOpenTextwindow, query_mshapequery_mshapequery_mshapeQueryMshapeQueryMshape, get_mshapeget_mshapeget_mshapeGetMshapeGetMshape

See also

get_mshapeget_mshapeget_mshapeGetMshapeGetMshape, query_mshapequery_mshapequery_mshapeQueryMshapeQueryMshape

Module

Foundation


Table of Contents / Graphics / Mouse ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH