4.1.1.4.7 Accessing an Edit Box and a RichEdit Control with Origin C

The Edit example demonstrates how to access an edit box and a rich edit control in a Dialog Builder resource. To access the Edit Box: edit box control in the Edit dialog below the example program uses the Origin C Edit class. To access the Rich Edit: rich edit control in the Edit dialog below the example program uses the Origin C RichEdit class. The example dialog is launched by executing the function EditBoxes in the source file Edit.c found in this zip file, under the \Dialog Builder\Edit subfolder.

Accessing an Edit Box and a RichEdit Control with Origin C image143.gif

To launch the Edit dialog above:

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