Skip to content

Mapping a checkbox to a function

jlee627 edited this page Oct 11, 2019 · 2 revisions

Mapping a checkbox to a function

This will be illustrated using an example function that updates a label to display different text

  • Step 1: With Checkbox selected, click on the "Events" menu, and check the "CheckChanged" checkbox

  • Step 2: Click on the "<>" symbol next to the "CheckChanged" checkbox, and type: "UpdateLabel" into the textbox | (UpdateLabel is our function)

  • Step 3: Click on the "Code" menu at the top, then select the "Logic" tab on the left

  • Step 4: Create your function within the "Logic" section by filling in the automatically generated function template, the following is an example of what one might look like:

The following is the result: