NAME¶
ArrowButton -
  帶有一個箭頭形狀的按鈕組件。
 
創建 CREATION¶
ArrowButton pathName ?option value...?
 
描述 DESCRIPTION¶
ArrowButton 根據 type
  選項而可以有兩種類型:
  對 button
  類型,它是在其上畫
  著一個箭頭的一個標準按鈕;對於
  arrow
  類型,它是像滾動條的箭頭那樣的一個
  箭頭。
 
  - -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