Chapter 4 Managing Profiles


Creating a dialog box

You create a dialog box when you need to enter parameters during the execution of a method in VB script using OLE automation. You can use this dialog box in a method using the createCustomDialog method.

You can also call additional dialog boxes from user-defined property tabs. See the "Getting started with forms" section.

When you select the dialog box type, new controls are available to let you enter temporary data like for example method arguments to invoke. See the "Dialog box layout tools" section.

Steps To create a dialog box:

  1. Right-click a metaclass, a stereotype or a criterion and select New→Form.

    The new form is created.
  2. Type a meaningful name, this name will become the title of the dialog box. Type a comment if needed.
  3. Select Dialog Box in the Type list.
  4. Click the Add Extended Attribute Control and the Add Method Push Button tools to select the extended attributes and methods to display in this dialog box.

    At this stage, the dialog box layout can be customized. See the "Defining the layout of a form" section for more information.
  5. Click Apply.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.