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

get_tshapeget_tshapeget_tshapeGetTshapeGetTshape (Operator)

Name

get_tshapeget_tshapeget_tshapeGetTshapeGetTshape — Get the shape of the text cursor.

Signature

get_tshape( : : WindowHandle : TextCursor)

Herror get_tshape(const Hlong WindowHandle, char* TextCursor)

Herror T_get_tshape(const Htuple WindowHandle, Htuple* TextCursor)

Herror get_tshape(const HTuple& WindowHandle, char* TextCursor)

HTuple HWindow::GetTshape() const

void HOperatorSetX.GetTshape(
[in] VARIANT WindowHandle, [out] VARIANT* TextCursor)

BSTR HWindowX.GetTshape()

static void HOperatorSet.GetTshape(HTuple windowHandle, out HTuple textCursor)

string HWindow.GetTshape()

Description

get_tshapeget_tshapeget_tshapeGetTshapeGetTshape queries the shape of the text cursor for the output window. A new cursor shape is set by the operator set_tshapeset_tshapeset_tshapeSetTshapeSetTshape.

A text cursor marks the current position for text output (which can also be invisible). 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 (output_control)  string HTupleHTupleVARIANTHtuple (string) (string) (char*) (BSTR) (char*)

Name of the current text cursor.

Result

get_tshapeget_tshapeget_tshapeGetTshapeGetTshape returns 2 (H_MSG_TRUE) if the window is valid. Otherwise an exception is raised.

Possible Predecessors

open_windowopen_windowopen_windowOpenWindowOpenWindow, open_textwindowopen_textwindowopen_textwindowOpenTextwindowOpenTextwindow, set_fontset_fontset_fontSetFontSetFont

Possible Successors

set_tshapeset_tshapeset_tshapeSetTshapeSetTshape, set_tpositionset_tpositionset_tpositionSetTpositionSetTposition, write_stringwrite_stringwrite_stringWriteStringWriteString, read_stringread_stringread_stringReadStringReadString, read_charread_charread_charReadCharReadChar

See also

set_tshapeset_tshapeset_tshapeSetTshapeSetTshape, 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