Event code (8 bits) : identifies the event.
事件码(Event code)(8比特):对事件进行识别。
The event code for "activity completed" is 21011.
用于“活动已完成”的事件代码是21011。
Under Events, make sure that any event code is removed.
在events下面,确保删除了所有事件代码。
Set the button to be of type Cancel and remove any event code.
将按钮设置为cancel类型并删除所有事件代码。
Modify the event code in the portlet class to process the event
在portlet类中编辑事件代码以处理事件
Similarly, make sure that any event code or simple action is deleted.
同样,确保删除了所有事件代码或简单操作。
In the event of the machine not operating correctly, an error code will appear.
如果机器运转不正常,就会出现错误代码。
Listing 4 shows the code for this example event definition.
清单4展示这个示例事件定义的代码。
Listing 3 shows the code for this example event definition.
清单3展示这个示例事件定义的代码。
Listing 2 shows the code for this example event definition.
清单2展示了这个示例事件定义的代码。
Listing 5 shows the code for this example event definition.
清单5展示了这个示例事件定义的代码。
Listing 6 shows the code for this example event definition.
清单6展示了这个示例事件定义的代码。
Once you define a custom event, you can use it in your event processing code.
定义一个定制事件后,就可以在事件处理代码中使用它。
Fortunately, the code for each event model is quite compact.
好在每个事件模型的代码都十分紧凑。
Listing 4 shows the code snippet to send the event message.
清单4显示了发送事件消息的代码片段。
The core of the event action calls the code in Listing 3.
这个事件动作的核心调用清单3中的代码。
Thus, the code to create the event hashtable is shown in Listing 6.
因此,创建事件散列表的代码如清单6所示。
Listing 3. Code for onhighlight event.
列表3.onhighlight事件的代码。
This code obtains the PID string and ITEMTYPE name from the event data.
这些代码能从事件数据获取PID字符串和ITEMTYPE名称。
In the OnClick event handler of the button, you need to write this code.
在按钮的OnClick事件处理程序中,需要写入下列代码。
Against the Click event handler, add the one line of code.
与Click事件处理程序不同,添加一行代码。
In the Form1_Load event handler method, copy and paste the following code.
在Form 1_load事件处理器方法中,复制并粘贴以下代码。
This opens the code page for the form, and it creates Form1_Load event handler method.
这将打开表单的代码页面,并创建Form 1_load事件处理器方法。
Modify the process action code in the portlet class to publish the event.
编辑portlet类的过程操作代码,以发布事件。
To listen to more event notifications, simply add more filter.enableType code lines.
要侦听更多的事件通知,只需多添加几行filter.enableType代码即可。
Listing 2 is some code for the onclick event of a button.
清单2是按钮的onclick事件的部分代码。
In your code, execute the object's Fill method (perhaps in a FormLoad event).
在您的代码中执行对象的Fill方法(可能在FormLoad事件中)。
Remove the code for the onclick event. (be sure to remove the code before proceeding.)
删除onclick事件的代码(确保在继续前删除代码)。
You can create such a component without writing a single line of event-handling code.
您不需要编写任何关于事件处理的代码就可以创建这样的组件。
You can create such a component without writing a single line of event-handling code.
您不需要编写任何关于事件处理的代码就可以创建这样的组件。
应用推荐