4.1.3.2.1 Adding an Origin Graph or Worksheet Control on a Dialog, Tabbed Dialog, or Wizard

You can display an Origin graph or worksheet on your resource so that the user can immediately see the result of their control selections in the resource. For example, the Origin Fitting Wizard displays an Origin graph containing raw fit data (gray scatter plot) and a fit curve (red line plot) generated as a result of operating various controls on its Fitting Control page and the Origin Import Wizard displays an Origin worksheet containing column designations (e.g. Time (X) (T&N)) generated as a result of operating various controls on its Data Columns page.

Adding Graph or Worksheet Control on a Dialog image133.gif

Adding Graph or Worksheet Control on a Dialog image134.gif

To add a graph or worksheet control to a dialog, tabbed dialog, or wizard, use the Origin Dialog AppWizard to get started creating your resource. After completing the wizard, perform the following operations to display a graph or worksheet on your dialog.

When you create your resource, use the Picture control to create the placeholder for your graph or worksheet. See the topic Adding Controls to your Dialog, Tabs, or Wizard Pages for more information on adding controls to a resource.

In the Picture Properties dialog, type a unique string ID in the ID combo box. Use the notation, IDC_ControlName. Type a ControlName that easily identifies the graph or worksheet placeholder control. See the topic Setting the Properties of Controls in your Resource for more information on setting the properties of controls in a resource.