Provided by:
manpages-zh_1.5.1-1_all 
NAME
ArrowButton -a@bYsC
CREATION
ArrowButton pathName ?option value...?
yz DESCRIPTION
ArrowButton 根據 type 選項而可以有兩種類型: 對 button
類型,它是在其上畫 著一蚑b頭的一蚍郱鷇s;對於 arrow
類型,它是像滾動條的箭頭那樣的一 箭頭。
S WIDGET-SPECIFIC OPTIONS
-armcommand
指定當在 ArrowButton 上點擊滑鼠按鈕 1 的時堇P ArrowButton
相關聯的一 Tcl 命令。在 repeatdelay 或 repeatinterval
選項是正整數的時唌A如果滑鼠 指針在這茷鷇s之上,則反復的調用這-
茤R令,直到釋放滑鼠按鈕 1。
-arrowbd
在 ArrowButton 的 type 是 arrow 的時-
唌A指定箭頭的邊框寬度。必須是 1 或 2。
-arrowrelief
在 ArrowButton 的 type 是 arrow 的時唌A指定箭頭的-
惚(relief)。必須是 raised 或 sunken。
-clean 為箭頭指定品質級別,在 0 到 2 之間。如果是
0,則用最大的寬度和高度畫這 箭頭。If 1, the base of arrow is
arranged to be odd to have same edges. If 2, the base of arrow
is arranged to be odd and the orthogonal to be (base+1)/2 to
have 'straight' diagonal for edges.
-command
指定與 ArrowButton 相關聯的一 Tcl 命令。典型的當滑鼠按鈕 1 在
ArrowButton 視窗上釋放的時埣掍帠o茤R令。
-dir 指定箭頭的方向: top、bottom、left 或 right。
-disarmcommand
指定在滑鼠按鈕 1 釋放的時堇P ArrowButton 相關聯的一 Tcl
命令。即使鼠 標指針不在 ArrowButton 上也n調用這-
茤R令,並且總是在用 command 選項指定 的命令之前。它典型的與
armcommand、repeatdelay 和 repeatinterval 聯合使 用。
-height
為 ArrowButton 指定想n的高度。熙璁鴐O螢幕單位。
-helptext
動態幫助的文本。如果為空,則這茞掍韝ㄞ鈶繸o幫助。
-helptype
動態幫助的類型。使用 balloon 或 variable.
-helpvar
在 helptype 選項是 variable 的時唻洏峈瘍僆q。
-ipadx 指定在 ArrowButton 邊框和箭頭的左右兩邊之間的一-
茬怳p邊距(pad)。這蚧的 單位是螢幕單位。
-ipady 指定在 ArrowButton 邊框和箭頭的上下兩邊之間的一-
茬怳p邊距(pad)。這蚧的 單位是螢幕單位。
-state 指定 ArrowButton 為三種狀態之一: normal、active、或 disabled。
如果 ArrowButton 的 type 是 button: 在普通狀態下,使用
foreground 和 background 選項來顯示 ArrowButton。在指針處於
ArrowButton 之上的時唻憳 的使用活躍狀態。在活躍狀態下,使用
activeforeground 和 activebackground 選項顯示
ArrowButton。在停用狀態下,使用 disabledforeground 和 background
選項顯示 ArrowButton。 如果 ArrowButton 的 type 是 arrow: 只
改變箭頭的顏色。總是使用 troughcolor 選項顯示 ArrowButton 的-
I景。在普通 狀態下,使用 background 選項顯示
ArrowButton。在指針處於 ArrowButton 之 上的時-
唻憳洩漕洏峎ˍD狀態。在活躍狀態下,使用 activebackground
選項顯示 ArrowButton。在停用狀態下,用模糊的點描(stipple)顯示
ArrowButton。 停用 狀態意味著 ArrowButton
應當是沒有感覺的(insensitive): 預設綁定將拒絕激活 這-
茞掍顙簽N忽略滑鼠按扭按下。
-type 決定 ArrowButton 的類型: button 是標準按扭外觀,arrow
是滾動條的箭頭外觀。
-width 為 ArrowButton 指定想n的寬度。熙璁鴐O螢幕單位。
RO
pathName cget option
返回用 option 給出的配置選項的當前COption
可以是能被建立命令接受的任 何C
pathName configure ?option? ?value option value ...?
查詢或蚹鼣o茞掍顗滌t置選項。如果未指定 option ,則返回描z
pathName 的 所有可獲得的選項的一茼C表。如果指定了不帶 value 的
option,則這茤R令返 回描z這茷名的 option 的一茼C表(這-
茼C表與未指定 option 所返回的
相應的子集是一樣的)。如果指定了一茤峖h蚇龠- 對,則這-
茤R令把給定的 組件選項蚹麍做鼎w的F在這種情況下這茤R令返回一-
茠臟瞗COption 可以是 能被建立命令接受的任何C只讀選項不可蚹鵅C
pathName invoke
如果 ArrowButton 的 state 不是停用。它調用這-
茷鷇s的命令。用活躍顏色和 sunken 惚(relief)奐s顯示
ArrowButton,並調用 armcommand。接著用普通顏 色和它定義的惚玳膆
ArrowButton,並調用 disarmcommand 接著調用 command.
在 ArrowButton 獲得輸入聚焦並且使用者按 space bar 的時埣掍
invoke。
[]
Hhh
[]
2001/06/04
m Linux manUpn:
http://cmpp.linuxforum.net
tcllib - BWidget ArrowButton(3tk)