4.1.1.4.3 Accessing a List Box Control with Origin C

The ListDataSets example demonstrates how to access a list box control in a Dialog Builder resource. To access the Available Data list box in the List Data Sets dialog below the example program uses the Origin C ListBox class. The example dialog is launched by executing the function LaunchListDataSets in the source file ListDataSets.cpp found in this zip file, under the \Dialog Builder\ListDataSets subfolder.

Accessing a List Box Control with Origin C image141.gif

To launch the List Data Sets dialog above:

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