Skip to reading
New Features Workbook: 35 Hands-on Lessons

Keep a GUI event pointed at the right record

Edition 0.86.4.7

37-page workbook using example workbenches included with the Studio release. The separately attached PDF is byte-identical to this ZIP copy and is included once.

Download PDFView PDF page

Write choices and ordered actions

STUDIO 0.86.4.7 • LESSON 13 OF 35

Two GUIs can use the same element name. Choose the owner first, then the target, and test the specific event that should reach it.

1. Choose one event on one element

In GUI Designer select the source element and open its event settings. For a button choose its click event. For a rotating widget choose Turn for movement or Dialed for a completed digit. Inspect which primary action this event runs. Each event can have its own target and additional rows.

2. Select the target by its actual owner

For an action targeting a GUI element, select the GUI first and then the element from that GUI. After switching the GUI, reselect the element. For a script, choose its script record. For an exposed function, choose Call Script Function and map its argument values.

3. Order the follow-up actions

Enable Additional Event Actions on the event you are editing. Put the action that changes the value before the one that checks it. For example, let the primary action raise pressure, then have a following action test whether it has reached 80. Apply the edit and trigger it once in Runtime Preview.

WHAT TO CHECK

Give another control a different event. Trigger it and verify the first event’s target stays untouched. Close and reopen the GUI several times and verify a single turn produces one change each time.

Page 15 of 37Permalink
Go to page