The Menu Page Header

Every menu page has a page header. This menu item sets the menu page title, initial position of the menu, and page operation defaults. The page header menu item must be completed before you can create any other menu items.

To create a new page and page header, select:

Utilities -> Edit Menu -> File -> Create Page -> enter page name -> Create

To edit an existing page header, display the menu page you want to edit and select:

Utilities -> Edit Menu -> Go -> Edit Page Header

Figure 8-2. Creating Menu Page Header

Page Header Options

1

 Shows the name of the menu page you are editing.

2

Enter the Help search string associated with this menu page. See The Help Menu Page.

3

Set the maximum size and initial position of the menu when it is first opened. The position will be relative to the selection made in item . Make sure the coordinates do not set the menu page off the display screen. (If the page is displayed off the screen, press F5, select the page header, and edit the location values.)

4

Indicate whether a title bar should be displayed, and what text should be in the title.

Select Menu bar if you want a menu bar to be displayed on the menu page. The menu bars that can be selected are:

0

the record editing menu bar

1

the main menu bar

2

the menu bar displayed during menu page editing

3

the menu bar displayed in the sequence editor

4

the menu bar displayed in the vision window

5

the menu bar displayed with the database utilities

See io.pul.dwn.spw (menu, $list, $entry, key, $name, $file, idbty, irec, iacc, inorun, index) for details on creating your own menu bars.

Select Scroll bars for window if you want scroll bars to be displayed on the menu page.

For VGB systems, these scroll bars can be displayed and undisplayed by clicking an icon in the window's title bar.

For AdeptWindowsPC, these scroll bars can be displayed or undisplayed only by using the check box.

5

Under Window is child of, select previous window to make the window position relative to the last displayed window. Select specified window to make the window position relative to a specified window (a data box will be displayed requesting the name of a window). When this page is displayed, it will be displayed relative to the location of the named window.

The Position rel to options determine the relative point for the upper left-hand corner of the window.

Click Center to calculate the coordinates of the window based on its size and the other specifications in and . Store the coordinates in item .

Click Cascade to calculate the coordinates of the window so that its upper left-hand corner is a standard distance below and to the right of the parent window. Cascade is displayed when upper left position is selected.

 

6

Select Move cursor to button if you want the first button on the page highlighted when the page is displayed. Normally, the first selectable menu item is highlighted.

Select Flush type-ahead if you want all mouse clicks and key presses flushed from the event buffer when the page is first displayed or redrawn.

7

Enter the number of the database type that will be edited from this menu page. Enter 0 to use the default database specified when the pulldown option calling this menu page (or its parent) is called (in almost all cases you should enter 0).

Enter the refresh rate for this page. All auto-refresh items will be reevaluated and redrawn at this rate (a value of 100 equals one second).

8

Select this option to allow operations from the "Edit" pulldown menu to be performed from this page. If this option is not selected, you will not be able to create or delete records from this menu page.

9

Enter a V+ routine to be run at various times when this page is active (see menu.pag.spawn (arg, mode, db.p, lun, luns[], $cmd)( ). The value in the Argument field will be passed to the indicated routine.

10

Select the color for the background of this menu page.