在av2 中插入(以 tkwait 开始的行的前面)几行脚本:
proc ValCh {a} {
global aList vList
;# get current index value for a within aList
set idx [lsearch $aList $a]
set va [.rc.fff.sub$idx.ent get]
send av [list reJig $va $a]
}
过程 ValCh
注意这个过程 "ValCh" 是将被作为每个录入组组件的事件绑定而调用的脚本。
脚本中新的或变更了的行被突出显示了。
改变任何配置选项的值并看结果。下面展示了设置背景色为 Red 的结果。