omron — Properties

Properties 1. Drag a button onto your form. 2. In the Properties selector, locate (select) the Button tool you just added to the form. Properties Item Selector 3. Click the Event ( ) icon. The Event selector opens. Event Selector 4. Select an event to view for the tool. In the case of the Button tool, the available event is "button1_ Click", which is selected from Action > Click > button1_Click. When you select the event, the code view for the UI form opens, and the cursor is placed at that event handler in the code. Cursor at Event Handler Code Note the following about the event viewer:

l You cannot modify the event handler line (it is marked by a gray background, as shown in the pre- vious figure, which means it is protected and cannot be edited or removed). l If you do NOT add any code to the event handler, when you select "none" from the Event selector, the event handler code is removed, which makes the code "cleaner". l If you add code to the event handler, the event handler code will NOT be removed when you select "none" from the Event selector. ACE User's Guide, 3.6.x 18316-000 Rev A Page 1014