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

set_tpositionset_tpositionset_tpositionSetTpositionSetTposition (Operator)

Name

set_tpositionset_tpositionset_tpositionSetTpositionSetTposition — Set the position of the text cursor.

Signature

set_tposition( : : WindowHandle, Row, Column : )

Herror set_tposition(const Hlong WindowHandle, const Hlong Row, const Hlong Column)

Herror T_set_tposition(const Htuple WindowHandle, const Htuple Row, const Htuple Column)

Herror set_tposition(const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column)

void HWindow::SetTposition(const HTuple& Row, const HTuple& Column) const

void HOperatorSetX.SetTposition(
[in] VARIANT WindowHandle, [in] VARIANT Row, [in] VARIANT Column)

void HWindowX.SetTposition(
[in] Hlong Row, [in] Hlong Column)

static void HOperatorSet.SetTposition(HTuple windowHandle, HTuple row, HTuple column)

void HWindow.SetTposition(int row, int column)

Description

set_tpositionset_tpositionset_tpositionSetTpositionSetTposition sets the position of the text cursor in the output window. The reference position is the upper left corner of an upper case character.

The position is measured in the image coordinate system. The position of the text cursor can be marked, e.g., by an underscore. The next text output in this window starts at the cursor position. The left end of the baseline for writing the following text string (not considering descenders) is placed on this position.

The position is changed by the output or input of text (write_stringwrite_stringwrite_stringWriteStringWriteString, read_stringread_stringread_stringReadStringReadString) or by an explicit change of position by (set_tpositionset_tpositionset_tpositionSetTpositionSetTposition, new_linenew_linenew_lineNewLineNewLine). In order to stop the display of the cursor, the operator set_tshapeset_tshapeset_tshapeSetTshapeSetTshape with the parameter ”invisible” can be used.

Parallelization

Parameters

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

Window identifier.

RowRowRowRowrow (input_control)  point.y HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Row index of text cursor position.

Default value: 24

ColumnColumnColumnColumncolumn (input_control)  point.x HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Column index of text cursor position.

Default value: 12

Result

set_tpositionset_tpositionset_tpositionSetTpositionSetTposition 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

Possible Successors

set_tshapeset_tshapeset_tshapeSetTshapeSetTshape, write_stringwrite_stringwrite_stringWriteStringWriteString, read_stringread_stringread_stringReadStringReadString

Alternatives

new_linenew_linenew_lineNewLineNewLine

See also

read_stringread_stringread_stringReadStringReadString, set_tshapeset_tshapeset_tshapeSetTshapeSetTshape, write_stringwrite_stringwrite_stringWriteStringWriteString

Module

Foundation


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