Choosing the Programming Language to Control your Dialog

The second page in the Origin Dialog AppWizard allows you to select the programming language you want to use to control your dialog.

Choosing the Programming Language to Control Your Dialog DMWiz2of3.png

It is strongly recommended that you select Origin C to control your dialog. Using Origin C greatly simplifies creating the resource (a Visual C++ string table is not required when using Origin C) and simplifies the coding required to control the resource. It is also recommended that you select the Use Classes check box. Among other advantages, using classes encapsulates the functionality of your dialog within a class object allowing you to hide implementation details. Using classes also allows you to declare controls on your dialog once as class members (which are always available inside the scope of your class) rather than having to declare them in each function. When selected these two options cause the Origin Dialog AppWizard to create a header file containing class based template code that can be used to control the dialog (object declarations, message maps, event handler functions, etc.). LabTalk can still be used to control a Dialog Builder dialog but it is recommended that you not use LabTalk. It is included primarily for backwards compatibility.

After selecting a programming language click the Next button at the bottom of the Origin Dialog AppWizard. You will then be prompted for the dialog caption, ID, and name.