"proc tkTableClipboardKeysyms {copy cut paste} {\n" " bind Table <$copy> {tk_tableCopy %W}\n" " bind Table <$cut> {tk_tableCut %W}\n" " bind Table <$paste> {tk_tablePaste %W}\n" "}\n" "bind Table <3> {\n" " ## You might want to check for row returned if you want to\n" " ## restrict the resizing of certain rows\n" " %W border mark %x %y\n" "}\n" "bind Table { %W border dragto %x %y }\n" "bind Table <1> {\n" " if {[winfo exists %W]} {\n" " tkTableBeginSelect %W [%W index @%x,%y]\n" " focus %W\n" " }\n" "}\n" "bind Table {\n" " array set tk::Priv {x %x y %y}\n" " tkTableMotion %W [%W index @%x,%y]\n" "}\n" "bind Table {\n" " # empty\n" "}\n" "bind Table {\n" " if {[winfo exists %W]} {\n" " tk::CancelRepeat\n" " %W activate @%x,%y\n" " }\n" "}\n" "bind Table {tkTableBeginExtend %W [%W index @%x,%y]}\n" "bind Table {tkTableBeginToggle %W [%W index @%x,%y]}\n" "bind Table {tk::CancelRepeat}\n" "bind Table {\n" " array set tk::Priv {x %x y %y}\n" " tkTableAutoScan %W\n" "}\n" "bind Table <2> {\n" " %W scan mark %x %y\n" " array set tk::Priv {x %x y %y}\n" " set tk::Priv(mouseMoved) 0\n" "}\n" "bind Table {\n" " if {(%x != $tk::Priv(x)) || (%y != $tk::Priv(y))} { set tk::Priv(mouseMoved) 1 }\n" " if $tk::Priv(mouseMoved) { %W scan dragto %x %y }\n" "}\n" "bind Table {\n" " if {!$tk::Priv(mouseMoved)} { tk_tablePaste %W [%W index @%x,%y] }\n" "}\n" "if {[string comp {} [info command event]]} {\n" " tkTableClipboardKeysyms \n" "} else {\n" " tkTableClipboardKeysyms Control-c Control-x Control-v\n" "}\n" "bind Table {\n" " # empty to allow Tk focus movement\n" "}\n" "bind Table {\n" " catch {%W activate active}\n" "}\n" "bind Table {tkTableExtendSelect %W -1 0}\n" "bind Table {tkTableExtendSelect %W 1 0}\n" "bind Table {tkTableExtendSelect %W 0 -1}\n" "bind Table {tkTableExtendSelect %W 0 1}\n" "bind Table {%W yview scroll -1 pages; %W activate @0,0}\n" "bind Table {%W yview scroll 1 pages; %W activate @0,0}\n" "bind Table {%W xview scroll -1 pages}\n" "bind Table {%W xview scroll 1 pages}\n" "bind Table {%W see origin}\n" "bind Table {%W see end}\n" "bind Table {\n" " %W selection clear all\n" " %W activate origin\n" " %W selection set active\n" " %W see active\n" "}\n" "bind Table {\n" " %W selection clear all\n" " %W activate end\n" " %W selection set active\n" " %W see active\n" "}\n" "bind Table {tkTableDataExtend %W origin}\n" "bind Table {tkTableDataExtend %W end}\n" "bind Table