有些控件类对鼠标按钮事件具有固有的类处理。
Some control classes might have inherent class handling for mouse button events.
所有这些方法和常量应该会使得对按钮事件做出响应更加容易。
All these methods and constants should make responding to button events easier.
当按钮释放的时候就发出一个实际按钮事件以及一个额外的别名关闭的事件。
When the set button is released it will emit the actual button event as well as an additional event that the alias button is "Off".
当所设置的映射按钮被按下时将发出一个实际按钮事件以及一个额外别名开启的事件。
When the set button is pressed it will emit the actual button event as well as an additional event that the alias is "On".
下面的示例创建一个鼠标按钮事件处理程序,该处理程序用于更改引发事件的对象的颜色。
The following example creates a mouse button event handler that changes the color of the object that raised the event.
接下来,添加一些代码将单击按钮事件发送给Zero,并通过一个小PHP脚本接收并处理它
Next, let's add some code to transmit the button-click to Zero and provide a small PHP script to pick it up and handle it
如果你有一个运行时间很长的数据库查询(比如由按钮点击所触发),那么在按钮事件产生后你可以增加延迟时间。
If you have a long-running database query for example that's triggered by a button press, you can simply increase the time paused after the button event has been issued.
Real - TimeAsset Locator将负责解释这个按钮事件并将其映射到一个资产状态更改。
Real-Time asset Locator will be responsible for interpreting the button event and map it to a change in state of an asset.
例如,单击按钮事件和单击菜单命令事件都能调用同一委托,然后该委托调用单个方法以相同方式处理各个事件。
For example, a button-click event and a menu-command-click event can both invoke the same delegate, which then calls a single method to handle these separate events the same way.
为了演示这一面,我们来做一个稍稍复杂一点的例子 :在页面上创建一个按钮,然后用一个事件处理器来响应按钮事件并弹出一个消息框显示“Hello world”字样。
So we’ll complicate things just a touch and create a button on the page, for which we’ll write an event handler to pop up a message box saying "Hello world", instead.
按钮和链接也提供事件处理。
通过单击最小UI(例如,按钮)或其他事件,触发可以是一种属性触发。
The trigger can be a property firing, clicking the minimal UI (for example, a button), or some other event.
控制器处理所有UI事件,例如单击按钮、选择菜单以及更改文本字段。
The controller handles all UI events, such as button clicks, menu selection, and text-field changes.
事件冒泡了等,这样您就能够捕获事件,并找出它来自哪个按钮。
Events bubble up so you'll be able to catch the event and figure out which button it originated from.
为使解决方案中涉及的组件的角色保持统一,RTLS提供者预计会发送一个“按钮按下”事件。
To keep consistent with the roles of the components involved in the solution, the RTLS provider is expected to send a "button press" event.
扩展和插件使用的主要区别在单击两个按钮的事件处理程序时可以看到。
The primary difference between the use of extensions and plug-ins can be seen in the click event handlers for the two buttons.
被调用的按钮和事件处理程序的类型的逻辑包含在此方法中,如清单15 所示。
The logic for the type of button and the event handler to be invoked is contained in this method, shown in Listing 15.
对于用户交互来说,你可以处理键盘敲击或按钮点击或其他控件事件。
For interaction with the user, you can process keystrokes or clicks on buttons or other components.
解释按钮按下事件并将其映射到一个有效的资产STATUS(下一节将详细介绍)。
Interpret the button press event and map it to a valid asset STATUS (more on this in the next section).
图18显示最初生成的输出,以及单击按钮触发事件后的输出。
Figure 18 shows the generated output initially and the output after the event has been fired by clicking the button.
这包括了如何将事件—包括用户级事件,如单击按钮—转换成操作和过程。
This will include how events - including user level events such as clicking on a button - are translated into operations and processes.
所以如果应用程序为按钮单击事件关联了错误的方法,UI测试自动化不会捕捉到逻辑错误(虽然每次测试都会失败,而且您会很快发现问题)。
So the UI test automation will not catch the logic error if the application has the wrong method wired to a button click event (although every test would fail and you'd find the problem quickly).
为希望测试的事件输入值并选择事件的单选按钮。
Enter values for the event you want to test and select the event's radio button.
为了获得更好的可用性,可以选择将以下代码行添加到编辑按钮的onclick事件。
Optionally, for better usability, add the following line of code to the onclick event for the edit button.
用户可以通过单击列表视图中的Add按钮添加事件。
The user can add events by clicking the add button in the listing view.
然后可以使用Dojo为按钮点击关联一个事件处理函数。
You then use Dojo to associate an event handler for when the button is clicked.
最后一步是用代码创建一个新web页面,来创建表单并处理Validate按钮上的提交事件。
The final step is to create a new web page with the code to create the form and handle the submit event on the Validate button.
因此可以改变按钮触发的事件:只要赋给onclick属性一个新的函数。
So you can change the event that's run on a button: you just assign a new function to the onclick property.
单击SendMeasurement按钮以将事件数据发送给DataCapture andDelivery设备代理,并启动处理流程。
Click the send Measurement button to send the event data to the data Capture and Delivery device agent and start the processing.
您肯定不想Real - TimeAsset Locator同时解释按钮按下事件和创建业务行为,比如创建Maximo中的工作流。
You explicitly do not want Real-Time Asset Locator to both interpret the button press event and create the business activity, such as create the workflow in Maximo.
应用推荐