4.1.1.4.1 Accessing a Combo Box and a Check Box Control with Origin C

The ComboBox example demonstrates how to access a combo box and a check box in a Dialog Builder resource. To access the combo box in the Using Combo Box in Origin dialog below the example program uses the Origin C ComboBox class. To access the check box in the Using Combo Box in Origin dialog below the example program uses the Origin C Button class. The example dialog is launched by executing the function LaunchCombox in the source file ComboBox.cpp found in this zip file, under the \Dialog Builder\ComboBox subfolder of Origin.

Accessing a Combo Box and a Check Box Control with Origin C image150.gif

To launch the ComboBox dialog above:

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