TextControlCursor

HC GUI programming TextControls TextControlCursor
TextControlSetInsertionPointEnd TextControlSetCursor

TextControlCursor atextcontrol


outputs the cursor position of the TextControl atextcontrol as a list of two zero-based integers, [column row].

Example:

t=(TextControl [][TextControl1]
	[This is the initial text.][][]
	wxTE_MULTILINE [0 0][300 200])
TextControlSetCursor t [10 2]
TextControlWrite t [!That's the new text!]
show TextControlCursor t

Reference:

TextControlSetInsertionPointEnd TextControlSetCursor