4.1.1.4.4 Accessing a Push Button and Check Box Controls with Origin C

The Buttons example demonstrates how to access a push button and check boxes in a Dialog Builder resource. To access the check boxes in the Buttons dialog below the example program uses the Origin C Button class. The example dialog is launched by executing the function Buttons in the source file Buttons.c found in this zip file, under the \Dialog Builder\Buttons subfolder of Origin.

Accessing a Push Button and Check Box Controls with Origin C image142.gif

To launch the Buttons dialog above:

  1. Open the source file Buttons.c in Code Builder.
  2. Add Buttons.c to the Code Builder workspace by activating it and pressing the CTRL + W keys.
  3. Build Buttons.c by clicking the Build button Accessing a Push Button and Check Box Controls with Origin C image12.gif.
  4. Type Buttons() in the Script Window or LabTalk Console and press the ENTER key.