• Aucun résultat trouvé

will occur

Dans le document Station 2626A (Page 83-87)

' " DATA FRAME

MARGIN FRAME~

Figure 5-9. Margin Frame and Data Frame

#AB-1234

(

(I

Display Control This changes the function key labels to the following: The "TO CURSOR" key < . . > draws a horizontal or vertical line from the current "from" position to the the current cursor position. If the two positions are neither in the same row nor the same column, then the terminal draws a rectangular frame with the "from" position in one corner and the current cursor position in the diagonally opposite corner.

... _-_ ..

The "sketch forms" key ~> gets you to the "sketch for m 5 " set of system function keys <for setting margins and

drawing frames> described in the preceding topic above. Initially the "home up" position is the current "from"

position. Mter you draw a line using any of the line draw-ing function keys, however, the position of the cursor at the time you pressed the key becomes the new "from"

position.

The "ERASE MODE" key <_> alternately enables and dis-ables erase mode. When erase mode is enabled, the line drawing function keys erase any existing lines or line seg-ments within their respective operating ranges. When en-abled, an asterisk appears in the "ERASE MODE" function key label.

The "FROM CURSOR" key < . . > defines the current cursor position as the new "from" position. You will use this key when you wish to draw a line segment that is not con-nected to the previously drawn line or line segment.

The "FROM CURSOR" and "TO CURSOR" keys < . . and . . > are used in conjunction with the cursor control

keys to draw individual line segments:

The", _ , _ , a n d " "sketch forms" func-tion keys operate as described in table 5-1.

..

HORIZNTL LINE

..

VERTICAL

LINE

..

HORIZNTL

SEGMENT

..

VERTICAL

SEGMENT

Table 5-1. Line Drawing Function Keys

This key draws a horizontal line from the left margin to the right margin in the line containing the cursor.

This key draws a vertical line from the top margin to the bottom margin in the column containing the cursor.

This key draws a horizontal line segment between two points in the line containing the cursor. The starting and ending points of the line segment are determined as follows:

a. If the cursor is located between two vertical lines (both intersecting the line containing the cursor), then a horizonti:lI line segment is drawn between the two vertical lines.

b. If there is no intersecting vertical line to the right of the cursor but there is to the left, then a horizontal line segment is drawn between the first intersecting vertical line to the left of the cursor and the right margin.

c. If there is no intersecting vertical line to the left of the cursor but there is to the right, then a horizontal line segment is drawn between the left margin arid the first intersecting vertical line to the right of the cursor.

d. If there are no intersecting vertical lines to the left or right of the cursor, then a horizontal line is drawn between the left and right margins .

This key draws a vertical line segment between two points in the column containing the cursor. The starting and ending points are determined as follows:

a. If the cursor is located between two horizontal lines (both intersecting the column containing the cursor), then a vertical line segment is drawn between the two horizontal lines.

b. If there is no intersecting horizontal line above the cursor but there is below, then a vertical line segment is drawn between the top margin and the first intersecting horizontal line below the cursor.

c. If there is no intersecting horizontal line below the cursor but there is above, then a vertical line segment is drawn between the first intersecting horizontal line above the cursor and the bottom margin.

d. If there are no intersecting horizontal lines above or below the cursor, then a vertical line is drawn from the top margin to the bottom margin.

Note that the lines and line segments will skip over any existing data characters, unprotected fields, or transmit-only fields.

Display Control Defining Fields

When a data entry form is displayed on the screen and format mode is enabled, all character positions on the screen are protected except those fields that have been specifically defined as either "unprotected" or "transmit-only". Protected data cannot be overwritten either from the keyboard or by a program executing in a host com-puter nor can it be accessed (read) by the remote pro-gram.

UNPROTECTED FIELDS. Data can be typed into unprotected fields through the keyboard. When the curser reaches the end of an unprotected field it auto-matically advances to the start of the next unprotected field. If the cursor is not within an unprotected field and you attempt to type data, it automatically advances to the start of the next unprotected field. You can quickly move the cursor from one unprotected field_ to another using t h e . key, the _ and • keys, or the _ key (in the numeric pad).

Programmatically you define the boundaries of unprotected fields by using the following escape se-quences:

Et[ Begin unprotected field.

Ii:) End unprotected field.

TRANSMIT ONLY FIELDS. Sometimes portions of the data to be entered into a form are very repetitive in nature in that they tend to be the same from one use of the form to another. In such cases you can actually incor-porate that data into the design of the form as transmit-only fields.

The content of transmit-only fields can be both read and overwritten (if desired) by a program executing in a host computer. During the data entry process, the cursor or-dinarily skips over transmit-only fields and the fields can-not be accessed using the tab and back tab functions. The operator may, however, use the cursor control keys to position the cursor within a transmit-only field and then overwrite the data in the field if necessary. Thus, trans-mit-only fields provide a means of eliminating extra key-strokes for the data entry clerk and yet allow the data within them to be altered in those exceptional cases where it is necessary to do so.

Programmatically you define the boundaries of transmit-only fields by using the following escape sequences:

Et{ Begin transmit-only field.

Et] End transmit-only field.

DATA CHECKING. When you create unprotected and transmit-only fields you can specify what type of data is to be entered into the field (alphanumeric. alphabetic only, or numeric only). If the operator attempts to enter 5-18

the wrong type of data into a field, the terminal will

"beep", lock the keyboard, and display an appropriate er-ror message across the bottom of the screen. The erro-neous data character is NOT displayed. To clear this condition, the operator presses _ .

Programmatically you define data checking subfields by embedding the following eSCape sequences within unprotected or transmit-only fields:

Et6 Begin alphabetic subfield (A through Z, a through z, or space).

1i:7 Begin numeric subfield (space, 0 through 9, minus sign, plus sign, period, or comma).

EtB Begin alphanumeric subfield (any keyboard characters).

Note that-Et6, Et7. and EtB are to be used in addition to the start-of-field and end-of-field escape sequences. They do NOT constitute implicit start-of-field indicators.

TABBING. Tabs are automatically set at the beginning of all unprotected fields when format mode is enabled;

any tabs set previously are ignored. When format mode is subsequently disabled, any previously set tabs are reinstated. Tabs cannot be set within an unprotected field. A special tab stop is also automatically set at the beginning of all transmit-only fields. This tab stop is ig-nored in response to the tab keys but is recognized when executing an "r received from data comm.

EDITING. While format mode is enabled, the content of the unprotected fields can be edited using the Insert Character and Delete Character functions (the Insert Line and Delete Line functions are, however, disabled).lf the entire unprotected field uses the same type of data checking (alpha only, numeric only, or alphanumeric),-then the editing function affects all character positions from the cursor through the end of the field. If the overall field contains two or more subfields (delineated by a change in the type of data checking), then the editing functions affect only those character positions from the cursor through the end of the subfield.

In$erting Characters. Using the Insert Characters function, you may insert data at the cursor position within any unprotected field. Data forced out the end of the subfield is lost. The wraparound function, if enabled, has no effect.

Deleting Characters. Using the Delete Characters function, you may delete data at the cursor position within an unprotected field. As the character at the cursor position is deleted, all characters to the right of the cursor within the subfield move left one position. The wraparound function, if enabled, has no effect.

(

(

Mter designing the linear structure of a data entry form, you define the various unprotected and transmit-only fields using the "def 1 ne He 1 d!!" set of system function keys. One way of getting to that set is as follows:

• .. ..

This changes the function key labels to the following:

...

...

To define an unprotected field, do as follows:

a. Move the cursor to the character position at which you wish the desired field to begin and then press "START UHPROTcr>1 ~).

b. Choose which data type (alphanumeric, alphabetic only. or numeric only) you wish to attach to the begin-ning of the field and then press _ . . . . or . . , whichever applies. Alphanumeric is the default at the start of an unprotected or transmit-only field. Note that within the overall field you can define several

·suhfields which are delineated by a change in the type of data checking. To define successive subfields. move the cursor to the beginning of each subfield and then select the desired data type ~, _ , or , , ) . c. Move the cursor to the character position immediately

to the right of the last character position in the field and then press "STOP FIELD" ~).

To define a transmit-only field, do as follows:

a. Move the cursor to the character position at which you wish the desired field to begin and then press "START XMIT F"LD" ~).

b. Choose which data type (alphanumeric, alphabetic only, or numeric only) you wish to attach to the begin-ning of the field and then press _ , _ , or . . , whichever applies. Alphanumeric is the default at the start of an unprotected or transmit-only field. Note that within the overall field you can define several subfields which are delineated by a change in the type of data checking. To define successive subfields, move the cursor to the beginning of each subfield and then select the desired data type ( _ , _ , or , , ) . c. Type the data that you wish to reside within the field.

d. Move the cursor to the character position immediately to the right of the last character position in the field and then press "STOP FIELD" ( _ ) .

The "enhance v1deo" key ( _ ) gets you to the video enhancement set of system function keys.

The "FORMAT MODE" function key ~) alternately turns format mode on and off. When format mode is on an as-terisk appears in the key label display.

Display Control DESIGNING HARDCOPY FORMS

If your terminal includes the optional thermal printer, you may use the forms design capabilities of the HP 2626A to create forms which you can print (on the in-tegral printer) and then duplicate using offset printing or an office copy machine. Figures 5-7 and 5-8 illustrate some examples of this type of form.

In designing a hardcopy form you will find yourself al-ternating back and forth between typing text and draw-ing horizontal and vertical lines (or line segments) . The general approach would be as follows:

a. Get to the "!!ketch form!!" set of system function keys using the following keystroke sequence:

. - ..

b. The default line type is a single thin line. If you wish to change the line type, get to the "define 11 ne!!" set of system function keys by pressing "defi ne 11 ne!!"

<_).

After selecting a line type you get back to the

"!!ketch form!!" function keys by pressing the _ key twice in succession.

c. Once the "!!ketch form!!" key labels are displayed across the bottom of the screen, use the cursor control keys and the _ - . . function keys to define the left, right, top, and bottom margins. These margins should correspond to the various extremities of the particular form you are designing.

d. If you want the entire form to be framed, press . . . e. Get to the "drsw 11 nil!!" set of function keys by

press-ing_.

Now you are ready to type the desired text and draw the desired lines. To type the text, use the cursor control keys to position the cursor where you want the particular text to appear and then enter the text through the keyboard.

To draw lines and line segments, use the cursor control keys and the "drsw Une!!" function keys.

At any point you may redefine the current line type using the "def 1 ne 11 nil!!" set of system function keys. From the

"drsw Une!!" keys you get to the "define Une!!" set of system function keys by using the following keystroke se-quence:

• ...

--From the "def 1 ne U nil!!" keys, you get back to the "drsw

11 ne!!"setofsystemfunctionkeys bypressing"drsw 11 ne!!"

,,).

Note that by using the "FROM CURSOR" ~) and "TO CURSOR"

<_)

function keys you can even create simple

Display Control

b. Use the "define Une!!", "!!ketch form!!", and "draw,

bar charts as illustrated in figure 5-10 (figure 5-11 shows the base set equivalent characters for producing that bar chart).

li n e!! " sets of system function keys to create the linear

(I

structure of the form.

By using various pattern segments of the line drawing set you can create shaded bar charts as illustrated in figure 5-12 (figure 5-13 shows the base set equivalent characters . for producing that bar chart).

DESIGNING DATA ENTRY FORMS

In designing data entry forms for use with a program to be executed in a host computer, you will probably find it use-ful to take a more systematic approach as follows:

a. Sketch a draft of the form on a piece of paper to deter-mine the linear structure of the form, the relative loca-tion and wording of any desired transmit-only or protected text (such as the form title, column headings, and data field prefixes), and the location and size of all unprotected fields.

c. Use the cursor control keys, the "enhance Video" sys-tem function keys, and the alphanumeric keys to cre-ate all protected text (such as the form title and column headings).

d. Use the "define field!!" and "enhance video" system function keys, the cursor control keys, and the alpha-numeric keys to create all desired unprotected and transmit-only fields.

Once the form has been designed on the screen you may transfer it to a program executing in a host computer by putting the terminal in block, page mode (make sure for-mat mode is disabled) and then pressing _ . Figure 5-14 illustrates a typical data entry form (the shaded portions are the "unprotected" fields).

Dans le document Station 2626A (Page 83-87)