摘要: itk_component add toolbar_frame { frame $itk_interior.tbf \ -relief raised \ -borderwidth 1}same as:itk_component add toolbar_frame { frame $itk_component(hull).tbf \ -relief raised \ -borderwidth 1}============itk_component add toolbar { frame $itk_interior.tbf.toolbar}same asitk_component add tool 阅读全文
posted @ 2011-07-26 13:10 greencolor 阅读(198) 评论(0) 推荐(0) 编辑
摘要: $itk_component(sessionmenu) add separator$itk_component(sessionmenu) add-label "Add images..." \ -underline 4 \ -command [code $this addImages] $itk_component(sessionmenu) add separator 阅读全文
posted @ 2011-07-26 03:38 greencolor 阅读(146) 评论(0) 推荐(0) 编辑
摘要: $itk_component(menu) add cascade \ -label "Session" \ -menu $itk_component(sessionmenu)$itk_component(menu) ---> cascade ----> $itk_component(sessionmenu) (menu) 阅读全文
posted @ 2011-07-26 03:28 greencolor 阅读(147) 评论(0) 推荐(0) 编辑
摘要: itk_component add menu { menu $itk_interior.menu \# -label "aa" \ wrong -tearoff 0 \ -borderwidth 1 }itk_component a class, add a subclass menuitk_component do not have option "lable"=========$itk_component(menu) add cascade \ -label "Session" \ -menu $itk_component(ses 阅读全文
posted @ 2011-07-26 03:03 greencolor 阅读(145) 评论(0) 推荐(0) 编辑
摘要: [winfo toplevel $itk_component(hull)] configure \ -menu $itk_component(menu)add a menu bar into the toplevel window which containing $itk_component(hull). toplevel.c toplevel new class c.d widigets 阅读全文
posted @ 2011-07-26 02:19 greencolor 阅读(280) 评论(0) 推荐(0) 编辑
摘要: itk_component add dismiss { button $itk_interior.dismiss -text "Dismiss" -command "destroy $itk_component(hull)" }the array ofitk_component get a new member as dismissnew itk_component as arraylistitk_componet add dismiss === itk_component.add(dismiss)itk_component(dismiss)button 阅读全文
posted @ 2011-07-26 01:48 greencolor 阅读(129) 评论(0) 推荐(0) 编辑