Skip to content

set_tpositionSetTpositionSetTpositionset_tpositionT_set_tposition🔗

説明🔗

set_tpositionSetTpositionSetTpositionset_tpositionT_set_tposition — テキストカーソルの位置を設定する。

書式🔗

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 )

説明🔗

set_tpositionSetTpositionは、出力ウインドウ内でテキストカーソルの位置を 決定します。参照点は大文字テキストの左上隅です。

テキストカーソルの位置は、ウインドウの座標系で指定します。テキスト カーソルの位置は、たとえばアンダーラインによってマークすることができます。 このウインドウ内の次のテキスト出力は、そのカーソル位置で始まります。 つまり、次に続くテキスト文字列を書くためのベースラインの左端は、この カーソル位置に置かれます。

テキストカーソルの位置は、テキスト入出力 (write_stringWriteString, read_stringReadString) または (set_tpositionSetTposition, new_lineNewLine) による位置の変化によって変わります。カーソルの表示を終了するために、 パラメーター”invisible”を指定したオペレーター set_tshapeSetTshape を 使用できます。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

ウインドウハンドル

Rowrowrow (input_control) point.y → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

テキストカーソル位置の行座標

初期値: 2424

Columncolumncolumn (input_control) point.x → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

テキストカーソル位置の列座標

初期値: 1212

結果🔗

ウインドウが有効であるならば、set_tpositionSetTposition は、値 2 (H_MSG_TRUE) を返します。 そうでなければ、例外が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

open_windowOpenWindow

後処理の候補

write_stringWriteString, read_stringReadString

他の選択候補

new_lineNewLine

関連項目

read_stringReadString, write_stringWriteString

モジュール🔗

Foundation