Opening a Prototype window to add a new function

How you create a new function depends on whether you are defining a global function or an object-level function.

StepsTo create a new global function:

  1. Select File>New from the menu bar and select Function from the PB Object tab

    The Function painter opens, displaying a Script view with an open Prototype window in which you define the function.

StepsTo create a new object-level function:

  1. Open the object for which you want to declare a function.

    You can declare functions for windows, menus, user objects, or applications.

  2. Select Insert>Function from the menu bar, or select Add from the Function List view pop-up menu.

    The Prototype window opens in a Script view.