Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I move the insertion cursor in a text widget?

Status
Not open for further replies.

BioDJ

Programmer
Oct 5, 2001
10
0
0
NL
Hello
I'm using a text widget and now i have the wish to, on certain events, change the place of the insertion cursor. With canvas and entry widgets there is the command "-icursor". With that you can change the place of the cursor. But a text widget doesn't have such an option! Can someone help me with this?

BioDJ
 
Read text man's. This moves cursor at index. Mak insert corresponds to cursor.
Code:
.text mark set insert $index
 
Thanks very much. This idea kinda crossed my mind already. I do have a manual, it just didn't get clear to me........


dj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top