Help Contents / GUI programming / TextControls / TextControlCursor

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 


previous: TextControlSetInsertionPointEnd	next: TextControlSetCursor
