Skip to content

set_tpositionSetTpositionSetTpositionset_tpositionT_set_tpositionπŸ”—

Short descriptionπŸ”—

set_tpositionSetTpositionSetTpositionset_tpositionT_set_tposition β€” Set the position of the text cursor.

SignatureπŸ”—

set_tposition( window WindowHandle, point.y Row, point.x Column )void SetTposition( const HTuple& WindowHandle, const HTuple& Row, const HTuple& Column )static void HOperatorSet.SetTposition( HTuple windowHandle, HTuple row, HTuple column )def set_tposition( window_handle: HHandle, row: int, column: int ) -> None

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

void HWindow::SetTposition( Hlong Row, Hlong Column ) const

void HWindow.SetTposition( int row, int column )

DescriptionπŸ”—

set_tpositionSetTposition 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_stringWriteString, read_stringReadString) or by an explicit change of position by (set_tpositionSetTposition, new_lineNewLine). In order to stop the display of the cursor, the operator set_tshapeSetTshape with the parameter ”invisible” can be used.

Execution informationπŸ”—

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

ParametersπŸ”—

WindowHandlewindowHandlewindow_handle (input_control) window β†’ (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

Window handle.

Rowrowrow (input_control) point.y β†’ (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Row index of text cursor position.

Default: 2424

Columncolumncolumn (input_control) point.x β†’ (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

Column index of text cursor position.

Default: 1212

ResultπŸ”—

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

Combinations with other operatorsπŸ”—

Combinations

Possible predecessors

open_windowOpenWindow

Possible successors

write_stringWriteString, read_stringReadString

Alternatives

new_lineNewLine

See also

read_stringReadString, write_stringWriteString

ModuleπŸ”—

Foundation