# 4.1.3.2.3 Adding Tabs or Wizard Pages after the Origin Dialog AppWizard is Closed

To add a tab or wizard page after you have closed the Origin Dialog AppWizard, perform the following steps:

#### Steps 1 - 4: Add a resource ID string for the new tab (or wizard page) to the Symbol include header file.

• 2. Click at the end of the line for one of the #define directives and press ENTER. For example, in the Symbol include header file for the tabbed dialog you could click at the end of the line for the
  #define IDD_SECONDTAB 3001
directive and press ENTER.

• 3. In the new line, type a #define directive for the tab (or wizard page) that you did not create when running the Origin Dialog AppWizard. Use the syntax:
   #define IDD_STRING VALUE


Replace STRING with a unique and descriptive string ID for the tab (or wizard page). Replace VALUE with a unique numeric ID that is in the range of 3000 - 5000. For example, you could enter:

#define IDD_THIRDTAB 3002

• 4. After you finish editing the Symbol include header file, click the Save button on the Standard toolbar to save your changes and then select the File:Close menu item to close the header file in the development area.

See the section Defining (or Re-defining) Resource IDs in the Symbol Include Header File for related information.

#### Steps 5 - 11: Create the tab (or wizard page) resource.

• 5 To create the new tab (or wizard page) resource, select the Insert:Resource menu item to open the Insert Resource dialog.

• 6 Select Dialog from the Resource Type list box and click the New button. The ResourceView tab becomes active in the Workspace window and the new dialog (tab or page) resource displays in the development area.
• 7 If the Dialog Properties dialog is not open, open it by right-clicking on the new dialog and then select Properties from the shortcut menu.

• 8 In the Dialog Properties dialog, type the desired caption in the Caption text box.
• 9 From the ID combo box, select the resource ID string that you defined for this new dialog in the Symbol include header file. For example, you would select IDD_THIRDTAB.
• 10 Select the More Styles tab and then select the Visible check box.

• 11 If you do not want the OK or CANCEL command buttons on your dialog, click on the button that you want to remove and press DELETE.

#### Steps 12 - 13: Resizing your tab or wizard page

• 12 You must now resize your new tab or wizard page so that it is the same size as your other tabs (or wizard pages). To do this, first double-click on one of your other tab (or wizard page) icons in the Dialog folder of the Workspace window to open it. This dialog becomes active in the development area. To learn how to open a resource see the section Opening your Resource and Workspace Files.

Note the size of the dialog listed on the right side of the status bar.

• 13 Now re-activate your new tab or wizard page and resize it so that it has the same dimensions as the dialog you previously activated. See the topic Resizing Dialog, Tab, and Page Resources for more information on resizing tabbed dialogs and wizard pages.