Opening Script views

If there is no open Script view, selecting a menu or PainterBar item that requires a Script view opens one automatically. If you want to edit more than one script at a time, you can open additional Script views from the View menu.

To open a new Script view:

  • Select View>Script from the menu bar.

To edit a script for a control:

  • Double-click a scriptable control, or select Script from the PainterBar or a pop-up menu.

    The Script view shows the default script for the control. If the Script view is in a stacked pane and is hidden, it pops to the front. If there is no open Script view, PowerBuilder creates a new one.

    Using drag and drop

    If a Script view is visible, you can drag a control from the Control list view to the Script view to edit a script for the control.

To edit a script for a function or event:

  • Double-click an item in the Event list or Function list views, or select the function or event from the second drop-down list in an open Script view.

    The Script view shows the script for the selected event or function. If the Script view is in a tabbed pane and is hidden, it pops to the front. If there is no open Script view, PowerBuilder creates a new one.