Example: Opening a Display

Suppose you want to open a display when the mouse is clicked. One way to accomplish this is:

  1. Add a rectangle to a display (From Insert menu | Shapes, select Rectangle ).

  2. Right-click the rectangle and select Commands. The Configure Actions and Commands dialog box appears.

  3. Select the action (mouseClicked).

 
  1. Double-click the Open Picture Command. The Open Picture Command dialog box appears.

  2. Select the display or URL to open:

    • To open a display, select the ellipsis button beside the Display Name field, select the display name and click the Open button.

    • To load a symbol file, select the ellipsis button beside the Symbol File Name field, select the symbol file and click the Open button.

    • To open a URL, select the Open URL option button and enter the URL you want to open. If you want the URL to open in a new window, select the Open in new window button.

  3. Click OK to save your changes.

  4. Click Close on the Configure Actions and Commands dialog box.

  5. Switch to the run-time environment and click the rectangle. The command you specified executes.