Lesson 9: Creating a Sales Application  Lesson 9: Creating a Sales Application


Add menu items to the application menu

Note

Now you add new menu items to the m_salesdb menu.

  1. In the System Tree, double-click m_salesdb.

    The Menu painter opens.

  2. In the tree view of the menu, right click Order and then select Insert Menu Item.

    In the blank box that displays, type File and press Enter.

  3. Right click File and select Insert Submenu Item from the popup menu.

    For the submenu item text, type Synchronize and press Enter.

  4. Repeat the previous step but type Sync Options... for the submenu item text.

  5. Repeat the step a third time but type Exit for the submenu item text.

    The File menu name properties should be m_file, m_synchronize, m_syncoptions, and m_exit. If any menu name is incorrect, clear the Lock Name check box in the Properties view and correct the menu name. The Menu painter should now look like this:

    Shown is the Quick Select screen. At top left is a Tables list box with the customer table highlighted. At right is a Columns list box showing all the columns of the customer table, such as i d, f name, and l name. At the bottom is a scrollable blank display area with rows labeled Column, Sort, Criteria, and Or.
  6. Double click the Exit menu item in the main menu tree view.

    Be sure the drop down menu at the top of the Script view displays the clicked( ) event for the m_file.m_exit object.

    Type the following code in the Script view.

    // Terminate application
    f_disconn()
    Halt Close
    
  7. Select File>Save to save the changes.

  8. Close the Menu painter.





Copyright © 2004. Sybase Inc. All rights reserved. Lesson 9: Creating a Sales Application

View this book as PDF