sourCEntral - mobile manpages

pdf

ArrowButton

NAME

ArrowButton - 帶有一個箭頭形狀的按鈕元件。

建立 CREATION

ArrowButton pathName ?option value...?

描述 DESCRIPTION

ArrowButton 根據 type 選項而可以有兩種型別: 對 button 型別,它是在其上畫 著一個箭頭的一個標準按鈕;對於 arrow 型別,它是象捲軸的箭頭那樣的一個 箭頭。

元件特有選項 WIDGET-SPECIFIC OPTIONS

-armcommand

指定當在 ArrowButton 上點選滑鼠按鈕 1 的時候與 ArrowButton 相關聯的一個 Tcl 命令。在 repeatdelay 或 repeatinterval 選項是正整數的時候,如果滑鼠 指標在這個按鈕之上,則反覆的呼叫這個命令,直到釋放滑鼠按鈕 1。

-arrowbd

在 ArrowButton 的 type 是 arrow 的時候,指定箭頭的邊框寬度。必須是 1 或 2。

-arrowrelief

在 ArrowButton 的 type 是 arrow 的時候,指定箭頭的面型(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 視窗上釋放的時候呼叫這個命令。

-dir

指定箭頭的方向: top、bottom、left 或 right。

-disarmcommand

指定在滑鼠按鈕 1 釋放的時候與 ArrowButton 相關聯的一個 Tcl 命令。即使鼠 標指標不在 ArrowButton 上也要呼叫這個命令,並且總是在用 command 選項指定 的命令之前。它典型的與 armcommand、repeatdelay 和 repeatinterval 聯合使 用。

-height

為 ArrowButton 指定想要的高度。值的單位是螢幕單位。

-helptext

動態幫助的文字。如果為空,則這個元件不能獲得幫助。

-helptype

動態幫助的型別。使用 balloon 或 variable.

-helpvar

在 helptype 選項是 variable 的時候使用的變數。

-ipadx

指定在 ArrowButton 邊框和箭頭的左右兩邊之間的一個最小邊距(pad)。這個值的 單位是螢幕單位。

-ipady

指定在 ArrowButton 邊框和箭頭的上下兩邊之間的一個最小邊距(pad)。這個值的 單位是螢幕單位。

-state

指定 ArrowButton 為三種狀態之一: normal、active、或 disabled。 如果 ArrowButton 的 type 是 button: 在普通狀態下,使用 foreground 和 background 選項來顯示 ArrowButton。在指標處於 ArrowButton 之上的時候典型 的使用活躍狀態。在活躍狀態下,使用 activeforeground 和 activebackground 選項顯示 ArrowButton。在停用狀態下,使用 disabledforeground 和 background 選項顯示 ArrowButton。 如果 ArrowButton 的 type 是 arrow: 只 改變箭頭的顏色。總是使用 troughcolor 選項顯示 ArrowButton 的背景。在普通 狀態下,使用 background 選項顯示 ArrowButton。在指標處於 ArrowButton 之 上的時候典型的使用活躍狀態。在活躍狀態下,使用 activebackground 選項顯示 ArrowButton。在停用狀態下,用模糊的點描(stipple)顯示 ArrowButton。 停用 狀態意味著 ArrowButton 應當是沒有感覺的(insensitive): 預設繫結將拒絕啟用 這個元件並將忽略滑鼠按扭按下。

-type

決定 ArrowButton 的型別: button 是標準按扭外觀,arrow 是捲軸的箭頭外觀。

-width

為 ArrowButton 指定想要的寬度。值的單位是螢幕單位。

元件命令

pathName cget option

返回用 option 給出的配置選項的當前值。Option 可以是能被建立命令接受的任 何值。

pathName configure ?option? ?value option value ...?

查詢或修改這個元件的配置選項。如果未指定 option ,則返回描述 pathName 的 所有可獲得的選項的一個列表。如果指定了不帶 value 的 option,則這個命令返 回描述這個指名的 option 的一個列表(這個列表與未指定 option 所返回的值的 相應的子集是一樣的)。如果指定了一個或多個選項-值 對,則這個命令把給定的 元件選項修改為給定的值;在這種情況下這個命令返回一個空串。Option 可以是 能被建立命令接受的任何值。只讀選項不可修改。

pathName invoke

如果 ArrowButton 的 state 不是停用。它呼叫這個按鈕的命令。用活躍顏色和 sunken 面型(relief)重新顯示 ArrowButton,並呼叫 armcommand。接著用普通顏 色和它定義的面型顯示 ArrowButton,並呼叫 disarmcommand 接著呼叫 command.

在 ArrowButton 獲得輸入聚焦並且使用者按 space bar 的時候呼叫 invoke。

[中文版維護人]

寒蟬退士

[中文版最新更新]

2001/06/04

《中國 Linux 論壇 man手冊頁翻譯計劃》:

http://cmpp.linuxforum.net

本頁面中文版由中文 man 手冊頁計劃提供。
中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh

pdf