上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 82 下一页
摘要: Options used with the Text method change the way the text is displayed within the Text widget. The following options are standard for all the widgets-background => color Changes the color of the screen displayed behind the text. Sets the width of the edges of the widget. Sets the cursor displayed 阅读全文
posted @ 2011-06-13 22:08 greencolor 阅读(199) 评论(0) 推荐(0) 编辑
摘要: itk_option add optName ?optName optName ...? Adds one or more options to the composite option list for a mega-widget. Here, optName can have one of the following forms: component.option Accesses an option belonging to a component with the symbolic name component. The option name is specified without 阅读全文
posted @ 2011-06-13 21:57 greencolor 阅读(280) 评论(0) 推荐(0) 编辑
摘要: TK OPTIONSThese options can be set at widget creation or changed later via configure.Name: activeBackground Class: Foreground Switch: -activebackground Specifies background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positi 阅读全文
posted @ 2011-06-13 21:23 greencolor 阅读(200) 评论(0) 推荐(0) 编辑
摘要: -activebackground => color Sets the color the background should be when the mouse cursor is over the Button. A color is a text string such as "red". -activeforeground => color Sets the color the text should be when the mouse cursor is over the Button. -anchor => 'n' | ' 阅读全文
posted @ 2011-06-13 20:26 greencolor 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Some Common Widget OptionsThe capitalized word must be replaced with any of the bold words. Check the manual for all the options. Also make sure that the widget you are using support the option you are using.-anchor POSITIONPosition widget relative to: n ne nw s se sw e w or center.-background COLOR 阅读全文
posted @ 2011-06-13 12:32 greencolor 阅读(326) 评论(0) 推荐(0) 编辑
摘要: option add *TextDisplay.wrap none widgetDefaultoption add *TextDisplay.textBackground ivory widgetDefaultoption add *TextDisplay.width 40 widgetDefaultoption add *TextDisplay.height 10 widgetDefaultclass TextDisplay { inherit itk::Widget constructor {args} { itk_component add text { text $itk_interi 阅读全文
posted @ 2011-06-12 11:32 greencolor 阅读(199) 评论(0) 推荐(0) 编辑
摘要: option add *MessageInfo.title "Notice" widgetDefaultclass MessageInfo { inherit itk::Toplevel constructor {args} { itk_component add dismiss { button $itk_interior.dismiss -text "Dismiss" -command "destroy $itk_component(hull)" } pack $itk_component(dismiss) -side botto 阅读全文
posted @ 2011-06-12 11:31 greencolor 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Safe BaseencodingifpidswitchTcleofincrpkg::createtcl_endOfWordaftererrorinfopkg_mkIndextcl_findLibraryappendevalinterpproctcl_startOfNextWordarrayexecjoinputstcl_startOfPreviousWordauto_execokexitlappendpwdtcl_wordBreakAfterauto_importexprlindexre_syntaxtcl_wordBreakBeforeauto_loadfblockedlinsertrea 阅读全文
posted @ 2011-06-10 21:37 greencolor 阅读(303) 评论(0) 推荐(0) 编辑
摘要: bellentryloadTkraisetk_focusFollowsMousetk_textPastebindeventlowerscaletk_focusNexttkerrorbindtagsfocusmenuscrollbartk_focusPrevtkvarsbitmapfontmenubuttonselectiontk_getOpenFiletkwaitbuttonframemessagesendtk_getSaveFiletoplevelcanvasgraboptionspinboxtk_menuSetFocuswinfocheckbuttongridoptionstexttk_m 阅读全文
posted @ 2011-06-10 16:09 greencolor 阅读(275) 评论(0) 推荐(0) 编辑
摘要: buttonboxcalendarcanvasprintboxcanvasprintdialogcheckboxcomboboxdateentrydatefielddialogdialogshelldisjointlistboxentryfieldextbuttonextfileselectionboxextfileselectiondialogfeedbackfileselectionboxfileselectiondialogfinddialoghierarchyhyperhelplabeledframelabeledwidgetmainwindowmenubarmessageboxmes 阅读全文
posted @ 2011-06-10 15:37 greencolor 阅读(196) 评论(0) 推荐(0) 编辑
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 82 下一页