------------------- BEGIN GLOBAL DEFINITIONS --------------------

---------------------- link defs --------------------------------

%linkdef (menu,GREEN,RV+HI,LK)        %cm menu button
%linkdef (prev,GREEN,RV+HI,LK)        %cm prev button
%linkdef (next,GREEN,RV+HI,LK)        %cm next button
%linkdef (btrk,GREEN,RV+HI,LB)        %cm btrk button
%linkdef (pl,GREEN,HI,LK)             %cm popup note link
%linkdef (cl,GREEN,HI,LK)             %cm card link
%linkdef (button_cl,GREEN,RV+NO,LK)   %cm button card link

------------------- attributes for cards ------------------------

%attrdef (note,,NO)                   %cm main cards
%attrdef (note_pop,,PO+NO)            %cm popup note cards

--------------- attributes for highlighted text -----------------

%attrdef (b1,YELLOW,NO)               %cm bold 1 (titles)
%attrdef (b2,YELLOW,NO)               %cm bold 2 (text)

--------------------- END GLOBAL DEFINITIONS --------------------

--------------------------- MAIN MENU ---------------------------

%card(main_menu,note,2)
%lk("NEXT",intro_crd,next) %go
%lk("PREV",zoom_crd,prev) %go
%lk("BTRK",,btrk) %go
%lk("MENU",main_menu,menu)

                    %a(b1)SAS/C Hypertext Viewer Help

      Select one of the following topics by moving the cursor onto
      the button%lk("<>",main_menu,button_cl)%go
next to the topic and pressing the ENTER key.

                %lk("<>",intro_crd,button_cl)%go
Introduction to the SAS/C Hypertext Viewer

                %lk("<>",control_crd,button_cl)%go
Control Window Fields

                %lk("<>",pfkeys_crd,button_cl)%go
PF Keys

                %lk("<>",move_crd,button_cl)%go
Moving the Control or Viewer Window

                %lk("<>",resize_crd,button_cl)%go
Resizing the Control or Viewer Window

                %lk("<>",zoom_crd,button_cl)%go
Zooming the Control or Viewer Window


                %a(b1)Press PF3 or PF15 to close help window.

%card_end(main_menu)

--------------------------- CARD END ----------------------------

-------------------------- INTRODUCTION -------------------------

%card(intro_crd,note,2)
%lk("NEXT",control_crd,next) %go
%lk("PREV",main_menu,prev) %go
%lk("BTRK",,btrk) %go
%lk("MENU",main_menu,menu)

                            %a(b1)Introduction

      The SAS/C Hypertext Viewer enables you to display the output
      file generated by the SAS/C Hypertext Compiler. The viewer
      is a software development utility that lets you work on
      hypertext documents and view them before the display manager
      for your applications program is written.

      The viewer consists of four windows: a control window
      that contains fields that can be used to control the viewer
      itself, a viewer window that is used to display the
      hypertext document, a command window that is used to
      simulate the command line of the applications program, and
      a help window. The command window does not have any
      borders and is located on the bottom line of the screen. The
      control window is immediately above the command window and
      the viewer is located on the top half of the screen.

                 %a(b1)Press PF3 or PF15 to close help window.

%card_end(intro_crd)

--------------------------- CARD END ----------------------------

---------------------------- CONTROL ----------------------------

%card(control_crd,note,2)
%lk("NEXT",pfkeys_crd,next) %go
%lk("PREV",intro_crd,prev) %go
%lk("BTRK",,btrk) %go
%lk("MENU",main_menu,menu)

                         %a(b1)Control Window

      The following fields of the control window are used to
      display your hypertext document and test it in an
      interactive windowing environment.

                      %lk("Dsname/Fileid ==>",f1,pl)

                      %lk("Search String ==>",f2,pl)

                      %lk("Border Color ==>",f3,pl)

                      %lk("Attr =>",f4,pl)

                      %lk("Bright =>",f5,pl)

                      %lk("Chars =>",f6,pl)

                      %lk("SCROLL =>",f7,pl)

      For information about a field move the cursor to the
      field name and press the ENTER key.

                 %a(b1)Press PF3 or PF15 to close help window.

%card_end(control_crd)

--------------------------- CARD END ----------------------------

------------------------------ F1 -------------------------------

%card(f1,note_pop,1)

                         %a(b1)Dsname/Fileid ==>

      The Dsname/Fileid field specifies the filename of the
      hypertext document. When a valid filename of a
      hypertext document is entered in this field, the
      document is displayed in a window that is located on
      the top half of the screen.  In TSO, the normal
      prefixing rules apply.

%card_end(f1)

--------------------------- CARD END ----------------------------

------------------------------ F2 -------------------------------

%card(f2,note_pop,1)

                         %a(b1)Search String ==>

      The Search String field specifies a search string that can
      be used to verify the linktext links that have been defined
      by the %%linktext command. When a valid linktext name
      is entered as a search string, the card to which the link is
      connected is displayed by the viewer.  The search strings
      are case sensitive.

%card_end(f2)

--------------------------- CARD END ----------------------------

------------------------------ F3 -------------------------------

%card(f3,note_pop,1)

                         %a(b1)Border Color ==>

      The Border Color field specifies the border color for
      the window used to display the hypertext document. Valid
      entries are blue, red, magenta, green, cyan, yellow, and
      white.

%card_end(f3)

--------------------------- CARD END ----------------------------

------------------------------ F4 -------------------------------

%card(f4,note_pop,1)

                         %a(b1)Attr =>

      The Attr field specifies the display attributes for
      the window border used to display the hypertext document.
      Valid entries are none, reverse, under, and blink.

%card_end(f4)

--------------------------- CARD END ----------------------------

------------------------------ F5 -------------------------------

%card(f5,note_pop,1)

                         %a(b1)Bright =>

      The Bright field specifies border brightness for the window
      used to display the hypertext document. Valid entries are Y
      (yes) and N (no).

%card_end(f5)

--------------------------- CARD END ----------------------------

------------------------------ F6 -------------------------------

%card(f6,note_pop,1)

                         %a(b1)Chars =>

      The Chars field specifies the border character for the
      window used to display the hypertext document. Valid entries
      are square, +, and none.

%card_end(f6)

--------------------------- CARD END ----------------------------

------------------------------ F7 -------------------------------

%card(f7,note_pop,1)

                         %a(b1)SCROLL =>

      The SCROLL field specifies the scroll amount used to scroll
      through the cards of the document being displayed.  Valid
      entries are cursor, half, max, and page.

%card_end(f7)

--------------------------- CARD END ----------------------------

---------------------------- PFKEYS -----------------------------

%card(pfkeys_crd,note,2)
%lk("NEXT",move_crd,next) %go
%lk("PREV",control_crd,prev) %go
%lk("BTRK",,btrk) %go
%lk("MENU",main_menu,menu)

                                %a(b1)PF Keys

      PF keys are also used to control the hypertext viewer. The
      following commands are assigned to the PF keys:

                 Help (PF1, PF13)
                    accesses a user-written help system.

                 Move (PF2, PF14)
                    relocates a viewer window.

                 Quit (PF3, PF15)
                    quits the hypertext viewer or closes the
                    help window.

                 Resize (PF4, PF16)
                    resize a viewer window.

                 Zoom (PF5, PF17)
                    zoom a viewer window.

                 Print (PF6, PF18)
                    prints the screen.

                 Down (PF7, PF19)
                    scrolls down.

                 Up (PF8, PF20)
                    scrolls up.

                 Next (PF9, PF21)
                    moves the cursor to the next window.

                 Left (PF10, PF22)
                    scrolls left.

                 Right (PF11, PF23)
                    scrolls right.

                 Home (PF12, P24)
                    moves the cursor to the command window.

                 %a(b1)Press PF3 or PF15 to close help window.

%card_end(pfkeys_crd)

--------------------------- CARD END ----------------------------

----------------------------- MOVE ------------------------------

%card(move_crd,note,2)
%lk("NEXT",resize_crd,next) %go
%lk("PREV",pfkeys_crd,prev) %go
%lk("BTRK",,btrk) %go
%lk("MENU",main_menu,menu)

                %a(b1)Moving the Control or Viewer Window

      To move the control or viewer window, perform the following
      steps:

        1. Move the cursor into the window you want to move.
           (The cursor can be placed anywhere inside the
           window or on the border.)

        2. Press the PF2 key. (MOVE is displayed in the lower-right
           border of the window to indicate that a move is pending.)

        3. Use the arrow keys to move the cursor to the
           desired location for the window. (The window does
           not follow the cursor until the next step.)

        4. Press the ENTER key. (The window moves to the
           desired location.)

                 %a(b1)Press PF3 or PF15 to close help window.

%card_end(move_crd)

--------------------------- CARD END ----------------------------

---------------------------- RESIZE -----------------------------

%card(resize_crd,note,2)
%lk("NEXT",zoom_crd,next) %go
%lk("PREV",move_crd,prev) %go
%lk("BTRK",,btrk) %go
%lk("MENU",main_menu,menu)

                %a(b1)Resizing the Control or Viewer Window

      To resize the control or viewer window, perform the
      following steps:

        1. Move the cursor into the border of the window you
           want to resize. (The cursor can actually be placed
           anywhere inside the window, but you will find
           resizing much easier if you place it on one of the
           border corners.)

        2. Press the PF4 key. (RESIZE is displayed in the
           lower right-hand border of the window to indicate
           that a resize is pending.)

        3. Use the arrow keys to move the cursor to the
           desired location for the window border. (The
           border does not follow the cursor until the next
           step.)

        4. Press the ENTER key. (The border moves to the
           desired location.)

                 %a(b1)Press PF3 or PF15 to close help window.

%card_end(resize_crd)

--------------------------- CARD END ----------------------------

------------------------------ ZOOM -----------------------------

%card(zoom_crd,note,2)
%lk("NEXT",main_menu,next) %go
%lk("PREV",resize_crd,prev) %go
%lk("BTRK",,btrk) %go
%lk("MENU",main_menu,menu)

                %a(b1)Zooming the Control or Viewer Window

      When you zoom a window it fills the entire display area;
      other windows that are currently opened will still be there,
      but they will be hidden behind the zoomed window. To zoom a
      window, perform the following steps:

        1. Move the cursor into the window you want to zoom.
           (The cursor can be placed anywhere inside the
           window or on the border.)

        2. Press the PF5 key. (The window zooms in to fill
           the entire display area or to its maximum size,
           whichever is smaller.)

        3. Press the PF5 key a second time to restore the
           original display.

                 %a(b1)Press PF3 or PF15 to close help window.

%card_end(zoom_crd)

--------------------------- CARD END ----------------------------

