`

simple.button

UP 
阅读更多

 

创建SimpleButton 类实例和创建upState, downState, overState, 和hitTestState等对象。当用户点

击按钮时用MouseEvent.CLICK事件激活方法.

 

 

SimpleButton 按钮的状态有以下这些:

 

upState

代表按钮默认"up"状态的对象, 当鼠标不在按钮上, 按钮就处于这个状态.

overState

当鼠标移动到按钮上时按钮的状态, 鼠标离开时按钮又回到"up"状态.

downState

当鼠标按下左键时所处的状态.

hitTestState

这个状态定义按钮的界限, 只是用来跟踪鼠标的目的, 设置overState的作用范围.

 

 

分享到:
评论

相关推荐

    simple.zip

    swt常有控件入门demo Button1.java Canvas1.java Combo1.java Menu1.java SashForm1.java ScrolledComposite1.java SimpleEditor1.java SimpleEditor2.java Slider1.java TabFolder1.java ToolBarExample.java ...

    gtk_simple_button

    c语言实现简单的button,用gtk编写

    Wi-Fi_Simple_Configuration_Technical_Specification_v2-0

    Wi-Fi Simple Configuration Technical Specification v2.0.2 © 2011 Wi-Fi Alliance. All Rights Reserved. Used with the permission of the Wi-Fi Alliance under the terms as stated in this document. Page 4...

    Simple Counter Button-crx插件

    语言:English,Français,español,italiano,português (Brasil) 将由按钮控制的计数器添加到Chrome工具栏 如果您需要一个简单的计数器,可以通过单击工具栏上的按钮对其进行递增,则此扩展名适合您。...

    simple-button-entity-row:Home Assistant自定义卡以显示图标,名称和按钮

    这是带有Home Assistant自定义ui卡simple-button-entity-row 。 该卡用于entities内部。 它可以显示图标,名称和带有一些文本的按钮。 按下按钮进行服务呼叫。 安装 您可以通过多种方法将此卡添加到家庭助理中。 ...

    Android代码-Droppy

    A simple yet-customizable Android drop-down menu. It supports Text with/without Icons, Separators, and even fully customized views. Version v.0.6.0 Usage (Maven) com.shehabic.droppy Droppy 0.6.0 ...

    matlab图形界面设计(英文原版)

    Laying Out a Simple GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11 Opening a New GUI in the Layout Editor . . . . . . . . . . . . . . 2-11 Setting the GUI Figure Size . . . . . . . . ....

    react-native-simple-radio-button:用于React Native的简单便捷的动画单选按钮组件

    react-native-simple-radio-button React Native的简单有用的单选按钮组件 演示版 安装 在Cli npm i react-native-simple-radio-button --save 入门 import RadioForm , { RadioButton , RadioButtonInput , ...

    wsc_best_practices_v2_0_1.pdf

    3.1 Push Button Configuration........................................................................................... 6 3.2 AP Static PINs and Lock-down State .........................................

    Creating Simple Like and Dislike Button Using AngularJS.zip

    JavaScript

    MessageBoxExLib.zip

    This is currently shown as a simple tooltip. 2. Ability to specify an option that allows the user to always use the same response for the specified messagebox. 3. Ability to save/load user ...

    Android代码-loading button

    Really simple to use. Makes your app looks cooler =D You can check how this library was implemented here: https://medium.com/p/9efee6e39711/ Contents Installation How to use / Sample Animate and ...

    Android代码-camera-touch-button

    Simple component to capture photo Keep the button pressed to open the camera release the button to capture the photo :) This library uses CameraKit-Android Demo Install Add the dependecy in build....

    Basic4Android 初學者指南 英文版

    1 Getting started........................................................................................................................7 1.1 Installing Basic4Android and Android SDK ...................

    A simple drop-in class that provides a ‘hot’ look button u

    A simple drop-in class that provides a ‘hot’ look button using the _TrackMouseEvent function使用_TrackMouseEvent函数创建漂亮按钮的一个简单类

    AngularJS - Novice to Ninja.pdf.pdf )

    非常不错的书 Preface . . . . . . . . ....Who Should Read This Book ....Conventions Used ....Code Samples ....Tips, Notes, and Warnings ....Supplementary Materials .... ....Chapter 1 Falling In Love With AngularJS ....

    Thinking in Java 4th Edition

    What’s Inside Preface 1 Java SE5 and SE6 .................. 2 Java SE6 ............................................The 4th edition...........................Changes ...........................................

    Python Power - The Comprehensive Guide (2008).pdf

    CHAPTER 1 About Python ............................................................................................1 What Is Python? ......................................................................

Global site tag (gtag.js) - Google Analytics