⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usual.n

📁 linux 下的源代码分析阅读器 red hat公司新版
💻 N
字号:
'\"'\" Copyright (c) 1993-1998  Lucent Technologies, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\"'\" RCS: $Id: usual.n 144 2003-02-05 10:56:26Z mdejong $'\".so man.macros.TH usual n 3.0 itk "[incr\ Tk]".BS'\" Note:  do not modify the .SH NAME line immediately below!.SH NAMEusual \- access default option-handling commands.br	for a mega-widget component.SH SYNOPSIS\fBusual ?\fItag\fR? ?\fIcommands\fR?.BE.SH DESCRIPTION.PPThe \fBusual\fR command is used outside of an \fB[incr\ Tcl]\fRclass definition to define the usual set of option-handlingcommands for a component widget.  Option-handling commandsare used when a component is registered with the \fBArchetype\fRbase class via the "\fBitk_component add\fR" method.  Theyspecify how the component's configuration options should beintegrated into the composite option list for the mega-widget.Options can be kept, renamed, or ignored, as described in the\fBArchetype\fR man page..PPIt is tedious to include the same declarations again and againwhenever components are added.  The \fBusual\fR command allowsa standard code fragment to be registered for each widget class,which is used by default to handle the options.  All of thestandard Tk widgets have \fBusual\fR declarations defined inthe \fB[incr\ Tk]\fR library.  Similar \fBusual\fR declarationsshould be created whenever a new mega-widget class is conceived.Only the most-generic options should be included in the \fBusual\fRdeclaration..PPThe \fItag\fR name is usually the name of a widget class,which starts with a capital letter; however, any string registeredhere can be used later with the \fBusual\fR command describedon the \fBArchetype\fR man page..PPIf the \fIcommands\fR argument is specified, it is associatedwith the \fItag\fR string, and can be accessed later via\fBitk_component add\fR..PPIf only the \fItag\fR argument is specified, this command looks foran existing \fItag\fR name and returns the commands associatedwith it.  If there are no commands associated with \fItag\fR,this command returns the null string..PPIf no arguments are specified, this command returns a list ofall \fItag\fR names previously registered..SH EXAMPLEFollowing is the \fBusual\fR declaration for the standardTk button widget:.CSusual Button {    keep -background -cursor -foreground -font    keep -activebackground -activeforeground -disabledforeground    keep -highlightcolor -highlightthickness    rename -highlightbackground -background background Background}.CEOnly the options that would be common to all buttons in asingle mega-widget are kept or renamed.  Options like "-text"that would be unique to a particular button are ignored..SH KEYWORDSitk, Archetype, component, mega-widget

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -