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

set_tshapeset_tshapeset_tshapeSetTshapeSetTshape (Operator)

Name

set_tshapeset_tshapeset_tshapeSetTshapeSetTshape — Set the shape of the text cursor.

Signature

set_tshape( : : WindowHandle, TextCursor : )

Herror set_tshape(const Hlong WindowHandle, const char* TextCursor)

Herror T_set_tshape(const Htuple WindowHandle, const Htuple TextCursor)

Herror set_tshape(const HTuple& WindowHandle, const HTuple& TextCursor)

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

void HOperatorSetX.SetTshape(
[in] VARIANT WindowHandle, [in] VARIANT TextCursor)

void HWindowX.SetTshape([in] BSTR TextCursor)

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

void HWindow.SetTshape(string textCursor)

Description

set_tshapeset_tshapeset_tshapeSetTshapeSetTshape 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_tshapequery_tshapeQueryTshapeQueryTshape.

Parallelization

Parameters

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

Window identifier.

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

Name of cursor shape.

Default value: 'invisible' "invisible" "invisible" "invisible" "invisible"

Result

get_tshapeget_tshapeget_tshapeGetTshapeGetTshape returns 2 (H_MSG_TRUE) if the window is valid and the given cursor shape is defined for this window. Otherwise an exception is raised.

Possible Predecessors

open_windowopen_windowopen_windowOpenWindowOpenWindow, open_textwindowopen_textwindowopen_textwindowOpenTextwindowOpenTextwindow, query_tshapequery_tshapequery_tshapeQueryTshapeQueryTshape, get_tshapeget_tshapeget_tshapeGetTshapeGetTshape

Possible Successors

write_stringwrite_stringwrite_stringWriteStringWriteString, read_stringread_stringread_stringReadStringReadString

See also

get_tshapeget_tshapeget_tshapeGetTshapeGetTshape, query_tshapequery_tshapequery_tshapeQueryTshapeQueryTshape, write_stringwrite_stringwrite_stringWriteStringWriteString, read_stringread_stringread_stringReadStringReadString

Module

Foundation


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