有些控件类对鼠标按钮事件具有固有的类处理。
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.
为使解决方案中涉及的组件的角色保持统一,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.
解释按钮按下事件并将其映射到一个有效的资产STATUS(下一节将详细介绍)。
Interpret the button press event and map it to a valid asset STATUS (more on this in the next section).
从RTLS接收按钮按下事件以及当前位置信息。
Receive the button press event, along with current location information, from the RTLS provider.
图18显示最初生成的输出,以及单击按钮触发事件后的输出。
Figure 18 shows the generated output initially and the output after the event has been fired by clicking the button.
处理单击ok按钮时的事件。
所以如果应用程序为按钮单击事件关联了错误的方法,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.
在按钮的OnClick事件处理程序中,需要写入下列代码。
In the OnClick event handler of the button, you need to write this code.
请注意按钮上指定的onClick事件。
在主页面上,转到编辑按钮的onclick事件。
On the main page, go to the onclick event for the edit button.
该函数被绑定到任何名为 participation_type_id的单选按钮的onclick()事件。
This function is bound to the onclick() event of any radio button named participation_type_id.
因此可以改变按钮触发的事件:只要赋给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.
应用推荐