zoukankan      html  css  js  c++  java
  • 滚动条和滑动块

    <pre name="code" class="sql">Scrollbar :  滚动条
    
    Scale 滑动块
    
    滚动条是一个衍生的部件,用于联系滚动条的部件,如果你想要创建一个部件附上滚动条,
    
    
    你会无疑的明白这个特性的用处,它通常会降低代码的数量。
    
    创建一个部件和滚动杆,可以用滚动的方式。
    $widget = $parent->Scrolled('Widget', -scrollbars => 'string' [, options ]); 
    
    'Widget' 可以试任何的部件支持滚动条 比如 Text,Listbox,etc
    
    
    scrollbars => SIDE:
    
    
    
    指定滚动条创建的位置: w,e 或者n s  ,或者是他们其中的组合。
    
    
    如果指定了0选项,那么滚动条只有当真的需要滚动时才会显示
    
    
    -activebackground => color 
    Sets the color the Scrollbar should be when the mouse pointer is over it. 
    指定激活滚动杆时的颜色
    -activerelief => 'flat' | 'groove' | 'raised' | 'ridge' | 'sunken' 
    Determines how active elements are drawn. The elements in question are arrow1, arrow2, and slider. 
    设定3D效果
    -background => color 
    Sets the background color of the Scrollbar (not the trough color). 
    设定滚动杆的背景颜色 
    18 
    -borderwidth => amount 
    Sets the width of the edges of the Scrollbar and the arrow1, arrow2, and slider elements. 
    设定滚动杆边框的宽度
    -command => callback 
    Sets the callback that is invoked when the Scrollbar is clicked. 
    设定当滚动杆滑动时所呼叫的程序
    -cursor => cursorname 
    Sets the cursor that is displayed when the mouse pointer is over the Scrollbar. 
    设定当鼠标放在滚动杆上时鼠标改变的形状
    -elementborderwidth => amount 
    Sets the width of the borders of the arrow1, arrow2, and slider elements. 
    设定边缘宽度
    -highlightbackground => color 
    Sets the color the highlight rectangle around the Scrollbar widget should be when it does not have the keyboard focus. 
    当滚动杆不是键盘输入焦点时,设定其颜色
    -highlightcolor => color 
    Sets the color the highlight rectangle around the Scrollbar should be when it does have the keyboard focus. 
    当滚动杆成为键盘输入焦点时,设定其颜色
    -highlightthickness => amount 
    Sets the thickness of the highlight rectangle. Default is 2. 
    设定焦点的宽度,默认值为2 
    -jump => 0 | 1 
    Indicates whether or not the Scrollbar will jump scroll. 
    指定附着在滚动杆上的内容是否延迟到鼠标松开时才更新
    -orient => "horizontal" | "vertical" 
    Sets the orientation of the Scrollbar. 
    指定滚动杆是横着还是竖着放
    -relief => 'flat'|'groove'|'raised'|'ridge'|'sunken'|'solid' 
    Sets the edges of the widget. 
    设置滚动杆的3D效果
    -repeatdelay => time 
    Sets the number of milliseconds required to hold down an arrow before it will auto-repeat. Default is 300 ms. 
    必须在自动重复多少时间前,按下一个按钮或按键才有效
    -repeatinterval => time 
    Sets the number of milliseconds in between auto-repeats. Default is 100 ms. 
    动作开始后,自动重复之间的间隔时间
    -takefocus => 0 | 1 | undef 
    Controls whether the Scrollbar can obtain the keyboard focus. 
    设定该滚动杆的聚焦状态
    -troughcolor => color 
    Changes the color of the trough (both trough1 and trough2). 
    改变槽的颜色
    -width => amount 
    19 
    Sets the width of the Scrollbar. 
    设置滚动杆的宽度
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    


    
                                        
    
  • 相关阅读:
    PHP运行模式
    深入理解php内核 编写扩展_III- 资源
    深入理解php内核 编写扩展 II:参数、数组和ZVALs
    [置顶] 图灵电子与电气工程丛书
    PHP开发-上传文件
    DWZ (JUI) 教程(二):处理信息回馈的通用规范
    设计模式之装饰者模式
    UVA 11464
    uva 1346
    [置顶] 手把手教你iOS消息推送证书生成以及Push消息
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351899.html
Copyright © 2011-2022 走看看