Hitachi

JP1 Version 11 JP1/Script Description and Reference (For Windows Systems)


3.6.1 Script Menu Editor window and menus

Menu Editor is for creating windows (menu forms) for completed script files. A menu form created with Menu Editor is saved as a menu information file. Use the Menu command to display the created window (menu form). For details about the Menu command, see 8.7.1 Menu (display a user-defined menu form).

This section describes the functions and menus of the Script Menu Editor window which appears when you start Menu Editor.

Organization of this subsection

(1) Script Menu Editor window

Figure 3-6 shows the Script Menu Editor window and the names of its components.

Figure 3‒6: Script Menu Editor window

[Figure]

(a) Toolbar

The toolbar contains buttons representing the most frequently used commands on the pull-down menus. By simply clicking a button, you can execute the corresponding command. You can hide the toolbar by toggling Toolbar in the View menu.

The following command buttons are displayed on the toolbar of the Script Menu Editor window.

Create

Creates a new menu information file.

Open

Opens a menu information file.

Save

Saves a menu information file.

Print Menu Form

Prints a menu form.

Exit

Quits Menu Editor.

Create Menu Form

Creates a new menu form.

Undo

Reverses the previous action.

Redo

Reinstates the previous action.

Cut

Cuts a selected control to the clipboard.

Copy

Copies a selected control to the clipboard.

Paste

Pastes a control from the clipboard to a menu form.

Select All

Selects all the controls written in a menu form.

Left Alignment

Aligns all controls along the left edge of a reference control.

Right Alignment

Aligns all controls along the right edge of a reference control.

Top Alignment

Aligns all controls along the top edge of a reference control.

Bottom Alignment

Aligns all controls along the bottom edge of a reference control.

Equal Horizontal Spacing

Arranges controls so that they are spaced equally in the horizontal direction.

Equal Vertical Spacing

Arranges controls so that they are spaced equally in the vertical direction.

Center Vertically

Aligns controls so that their vertical centers are in a horizontal line.

Center Horizontally

Aligns controls so that their horizontal centers are in a vertical line.

Adjust Width

Resizes a control to match the width of a selected control.

Adjust Height

Resizes a control to match the height of a selected control.

Adjust Size

Resizes a control to match the height and width of a selected control.

Set Grid

Sets a grid.

Move Forward

Moves a selected control to the foreground.

Move Backward

Moves a selected control to the background.

Set Command Properties

Defines the properties of a command.

Test View

Displays a created window (menu form) in test view.

Help

Displays the JP1/Script online help.

(b) Status bar

The status bar displays messages about the current processing being executed by Menu Editor and status messages at completion of processing.

(c) Menu form

A sheet on which you create a window. Information about the created window is written in a menu information file.

(d) Menu form tree view

A display area that shows in tree view a listing of the names of all menu forms written in menu information files. By clicking on a menu form, you can view its contents in the menu form view.

(e) Menu form view

A display area that shows the contents of a menu information file.

(f) Control boxes

The control boxes that you can use on a menu form are displayed as buttons. To paste a control box, select a control box button, then drag and drop it onto the form.

Figure 3-7 shows the available control boxes.

Figure 3‒7: Control boxes

[Figure]

Use the control boxes for the following purposes:

Pointer

To select a control.

Static

To paste a static (header) on a menu form.

Button

To paste a button on a menu form.

Browse Button

To paste a file browse button on a menu form.

Edit

To paste an edit on a menu form.

Line

To paste a line on a menu form.

Function Key

To paste a function key on a menu form. This control enables operation with a keyboard function key.

List

To paste a list on a menu form.

Combo Box

To paste a dialog box with an attached list box on a menu form.

(2) Menus in the Script Menu Editor window

The pull-down and pop-up menus in the Script Menu Editor window are described next.

(a) Commands in the pull-down menus

Table 3-19 lists the Menu Editor commands (functions) provided in the pull-down menus. Table 3-20 lists the cascading menu and commands that open from the Layout command.

Table 3‒19: Menu Editor menus and commands

Menu

Command (function)

Description

File

Create

Creates a new menu information file.

Open

Opens a menu information file.

Save

Saves a menu information file.

Save As

Saves a selected menu information file under a new name.

Print Menu Form

Prints a menu form.

Exit

Quits Menu Editor.

menu-information-file-name

Displays the name of the most recently saved menu information file.

Edit

Create Menu Form

Creates a new menu form.

Copy Menu Form

Copies an existing menu form to the clipboard.

Paste Menu Form

Pastes a menu form from the clipboard.

Delete Menu Form

Deletes a menu form from the clipboard.

Undo

Reverses the previous action.

Redo

Reinstates the previous action.

Cut

Cuts a selected control to the clipboard.

Copy

Copies a selected control to the clipboard.

Paste

Pastes a control from the clipboard to a menu form.

Select All

Selects all controls written on a menu form.

Delete

Deletes a selected control.

Change as Batch

Changes the attributes of selected controls in one operation.

Layout

Specifies the layout of the controls pasted on a menu form. A cascading menu is attached to the Layout command (see Table 3-20).

View

Toolbar

Shows or hides the toolbar.

Status Bar

Shows or hides the status bar.

Control Box

Shows or hides the control boxes.

Properties

Shows or hides a Properties dialog box.

Command Properties

Shows or hides the Command Properties dialog box.

Tools

Set Command Properties

Defines the properties of a command.

Test View

Displays a created window (menu form) in test view.

Help

Contents

Displays the contents of the JP1/Script online help.

Search by Keyword

Lists the keywords of the JP1/Script online help.

About JP1/Script

Displays version information for JP1/Script.

Table 3‒20: Cascading menu of the Layout command

Cascading menu

Command (function)

Description

Align

Left

Aligns controls along the left edge of a reference control.

Right

Aligns controls along the right edge of a reference control.

Top

Aligns controls along the top edge of a reference control.

Bottom

Aligns controls along the bottom edge of a reference control.

Center Vertically

Aligns controls so that their vertical centers are in a horizontal line with a reference control.

Center Horizontally

Aligns controls so that their horizontal centers are in a vertical line with a reference control.

Equal Spacing

Horizontal

Arranges controls so that they are spaced equally in the horizontal direction.

Vertical

Arranges controls so that they are spaced equally in the vertical direction.

Arrange on Menu Form

Center Vertically

Centers a control vertically on the menu form.

Center Horizontally

Centers a control horizontally on the menu form.

Set Same Size

Width

Resizes a control to match the width of a selected control.

Height

Resizes a control to match the height of a selected control.

Width and Height

Resizes a control to match the height and width of a selected control.

Adjust Size to Text

--

Resizes a control to fit the text size.

Set Grid

--

Sets a grid.

Set Tab Order

--

Sets the tab order for moving among controls.

Move Forward

--

Moves a selected control to the foreground.

Move Backward

--

Moves a selected control to the background.

(b) Pop-up menu

To display the pop-up menu in the Script Menu Editor window, right-click in the menu form view. Table 3-21 lists the commands in the displayed pop-up menu.

Table 3‒21: Commands in the Script Menu Editor pop-up menu

Command (function)

Description

Create

Creates a new menu information file.

Open

Opens an existing menu information file.

Save

Saves a menu information file, replacing its previous contents.

Print Menu Form

Prints a menu form.

Copy Menu Form

Copies an existing menu form to the clipboard.

Paste Menu Form

Pastes a menu form from the clipboard.

Delete Menu Form

Deletes an existing menu form.

Undo

Reverses the previous action.

Redo

Reinstates the previous action.

Cut

Cuts a selected control to the clipboard.

Copy

Copies a selected control to the clipboard.

Paste

Pastes a control from the clipboard to a menu form.

Select All

Selects all controls written on a menu form.

Delete

Deletes a selected control.

Change as Batch

Changes the attributes of selected controls in one operation.

Layout

Specifies the layout of the controls pasted on a menu form. A cascading menu is attached to the Layout command (see Table 3-20).

Set Command Properties

Defines the properties of a command.

Test View

Displays a created window (menu form) in test view.

Properties

Displays a Properties dialog box for a selected control.