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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting text in a canvas

Status
Not open for further replies.

ulis

Programmer
Oct 12, 2001
429
FR
I wrote this code:

canvas .c -height 20 -width 100 -selectborderwidth 0
.c create text 2 2 -anchor nw -text myText
.c select from 1 2; .c select to 1 4
pack .c

and get the last char of the selected text without the selectbackground color (in white on gray).

What goes wrong ?

Thanx

ulis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top