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

new_linenew_linenew_lineNewLineNewLine (Operator)

Name

new_linenew_linenew_lineNewLineNewLine — Set the position of the text cursor to the beginning of the next line.

Signature

new_line( : : WindowHandle : )

Herror new_line(const Hlong WindowHandle)

Herror T_new_line(const Htuple WindowHandle)

Herror new_line(const HTuple& WindowHandle)

void HWindow::NewLine() const

void HOperatorSetX.NewLine([in] VARIANT WindowHandle)

void HWindowX.NewLine()

static void HOperatorSet.NewLine(HTuple windowHandle)

void HWindow.NewLine()

Description

new_linenew_linenew_lineNewLineNewLine sets the position of the text cursor to the beginning of the next line. The new position depends on the current font. The left end of the baseline for writing the following text string (not considering descenders) is placed on this position.

If the next line does not fit into the window the content of the window is scrolled by the height of one line in the upper direction. In order to reach the correct new cursor position the font used in the next line must be set before new_linenew_linenew_lineNewLineNewLine is called. 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).

Parallelization

Parameters

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

Window identifier.

Result

new_linenew_linenew_lineNewLineNewLine 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, write_stringwrite_stringwrite_stringWriteStringWriteString

Alternatives

get_tpositionget_tpositionget_tpositionGetTpositionGetTposition, get_string_extentsget_string_extentsget_string_extentsGetStringExtentsGetStringExtents, set_tpositionset_tpositionset_tpositionSetTpositionSetTposition, move_rectanglemove_rectanglemove_rectangleMoveRectangleMoveRectangle

See also

write_stringwrite_stringwrite_stringWriteStringWriteString, set_fontset_fontset_fontSetFontSetFont

Module

Foundation


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