Skip to content
Tcl Source Code Artifact [b104f5852a]
Login

Artifact [b104f5852a]

Artifact b104f5852a513dec0a032801915940c9b622c4f9:

Ticket change [b104f5852a] - New ticket [699642ffffffffff|699642ffff] <i>Tk 8.4.1 - bug in text widget multi-click behaviour</i>. by brianpass on 2003-03-07 21:39:35.
D 2003-03-07T21:39:35
J assignee nobody
J cmimetype text/plain
J comment There's\sa\sdiscrepancy\sbetween\sthe\stext\swidget\s\nbehaviour\sdocumented\sin\nthe\sman\spages\sand\sthe\sTk\s8.4.1\simplementation.\s\sThe\s\nman\spage\ndescription\sof\sthe\sbindings\shas\s:\n\n.IP\s[2]\nDouble-clicking\swith\smouse\sbutton\s1\sselects\sthe\sword\s\nunder\sthe\smouse\nand\spositions\sthe\sinsertion\scursor\sat\sthe\sbeginning\sof\s\nthe\sword.\nDragging\safter\sa\sdouble\sclick\swill\sstroke\sout\sa\sselection\s\nconsisting\nof\swhole\swords.\n.IP\s[3]\nTriple-clicking\swith\smouse\sbutton\s1\sselects\sthe\sline\s\nunder\sthe\smouse\nand\spositions\sthe\sinsertion\scursor\sat\sthe\sbeginning\sof\s\nthe\sline.\nDragging\safter\sa\striple\sclick\swill\sstroke\sout\sa\sselection\s\nconsisting\nof\swhole\slines.\n\nHowever,\stext.tcl\shas\s:\n\nbind\sText\s<Double-1>\s{\n\s\s\s\sset\stk::Priv(selectMode)\sword\n\s\s\s\stk::TextSelectTo\s%W\s%x\s%y\n\s\s\s\scatch\s{%W\smark\sset\sinsert\ssel.last}\n}\n\nbind\sText\s<Triple-1>\s{\n\s\s\s\sset\stk::Priv(selectMode)\sline\n\s\s\s\stk::TextSelectTo\s%W\s%x\s%y\n\s\s\s\scatch\s{%W\smark\sset\sinsert\ssel.last}\n}\n\nFor\sreasons\swe\sare\sall\sonly\stoo\sfamiliar\swith\sthe\s\nobserved\sbehaviour\nconforms\swith\sthe\scode\srather\sthan\sthe\s\ndocumentation,\sand\sso\sthe\ninsert\scursor\sis\spositioned\sat\sthe\send\sof\sthe\sword\sor\sat\s\nthe\nbeginning\sof\sthe\snext\sline\sfor\sdouble\sand\striple\sclicks\s\nrespectively.\n\nIs\sanyone\saware\sof\sany\sreasons\swhy\sthis\scannot\ssimply\s\nbe\srectified\nwith:\n\nbind\sText\s<Double-1>\s{\n\s\s\s\sset\stk::Priv(selectMode)\sword\n\s\s\s\stk::TextSelectTo\s%W\s%x\s%y\n\s\s\s\scatch\s{%W\smark\sset\sinsert\ssel.first}\n}\n\nbind\sText\s<Triple-1>\s{\n\s\s\s\sset\stk::Priv(selectMode)\sline\n\s\s\s\stk::TextSelectTo\s%W\s%x\s%y\n\s\s\s\scatch\s{%W\smark\sset\sinsert\ssel.first}\n}\n\n\nRegards,\nBrian\sPassingham,\sPassingham\sSoftware\sLtd\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter brianpass
J subsystem None
J title Tk\s8.4.1\s-\sbug\sin\stext\swidget\smulti-click\sbehaviour
J type Bug
K 699642ffffffffffffffffffffffffffffffffff
U brianpass
Z 7f2f41f988345f20863bd21279ad020f