Name
get_tpositionget_tpositionGetTpositionget_tpositionGetTpositionGetTposition — Get cursor position.
get_tpositionget_tpositionGetTpositionget_tpositionGetTpositionGetTposition queries the current position of the text cursor in
the output window. The position is measured in the coordinate system
of the window (in pixels for text windows). The next output of text in this
window starts at the cursor position. The left end of the baseline for
writing the next string (not considering descenders) is placed on this
position. The position is changed by the
output or input of text (write_stringwrite_stringWriteStringwrite_stringWriteStringWriteString, read_stringread_stringReadStringread_stringReadStringReadString)
or by an explicit change of position by (set_tpositionset_tpositionSetTpositionset_tpositionSetTpositionSetTposition,
new_linenew_lineNewLinenew_lineNewLineNewLine).
If the output text does not fit completely into the window, an exception is
raised. This can be avoided by
set_check('~text')set_check("~text")SetCheck("~text")set_check("~text")SetCheck("~text")SetCheck("~text").
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: local (may only be called from the same thread in which the window, model, or tool instance was created).
- Processed without parallelization.
Row index of text cursor position.
Column index of text cursor position.
get_tpositionget_tpositionGetTpositionget_tpositionGetTpositionGetTposition returns 2 (H_MSG_TRUE) if the window is valid. Otherwise
an exception is raised.
open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow,
open_textwindowopen_textwindowOpenTextwindowopen_textwindowOpenTextwindowOpenTextwindow,
set_fontset_fontSetFontset_fontSetFontSetFont
set_tpositionset_tpositionSetTpositionset_tpositionSetTpositionSetTposition,
write_stringwrite_stringWriteStringwrite_stringWriteStringWriteString,
read_stringread_stringReadStringread_stringReadStringReadString,
read_charread_charReadCharread_charReadCharReadChar
new_linenew_lineNewLinenew_lineNewLineNewLine,
read_stringread_stringReadStringread_stringReadStringReadString,
set_tpositionset_tpositionSetTpositionset_tpositionSetTpositionSetTposition,
write_stringwrite_stringWriteStringwrite_stringWriteStringWriteString,
set_checkset_checkSetCheckset_checkSetCheckSetCheck
Foundation