home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / genapps / hp22dc.arj / USRGUIDE / PADPGBTN.TXT < prev    next >
Text File  |  1991-05-16  |  35KB  |  945 lines

  1.  
  2.  
  3.  
  4.  
  5.     ________________________________________________________________________
  6.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   191
  7.     ________________________________________________________________________
  8.  
  9.  
  10.     CHAPTER 12:  MANIPULATING PADS, PAGES, AND BACKGROUNDS
  11.  
  12.     A pad is an application created with HyperPAD. HyperPAD is especially
  13.     suited for designing certain types of applications, including
  14.     information systems like tutorials and help, flat-file databases, and
  15.     front ends. All of the applications that come with HyperPAD are pads.
  16.  
  17.     This chapter defines a pad and describes how to perform some basic pad
  18.     functions, including creating a pad, setting a pad's protection, and
  19.     making a copy of a pad. This chapter also introduces pages and
  20.     backgrounds, the major components of a pad, and describes how these
  21.     elements fit together.
  22.  
  23.  
  24.     WORKING WITH PADS
  25.  
  26.     In the following section, you'll learn how to work with pads.
  27.     Specifically, you'll learn some basic pad-maintenance tasks such as how
  28.     to:
  29.  
  30.         0  Save a copy of a pad
  31.  
  32.         0  Access information about a pad
  33.  
  34.         0  Add pages and backgrounds to a pad
  35.  
  36.         0  Protect a pad
  37.  
  38.         0  Remove extra space from a pad
  39.  
  40.         0  Create pads
  41.  
  42.  
  43.  
  44.     ________________________________________________________________________
  45.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   192
  46.     ________________________________________________________________________
  47.  
  48.  
  49.     GETTING PAD INFORMATION
  50.  
  51.     As a pad author, you may need certain information about your pad, such
  52.     as how many pages and backgrounds the pad has and the amount of disk
  53.     space the pad requires.
  54.  
  55.  
  56.     To access information about the current pad:
  57.  
  58.     1.  Access the pad you want information about.
  59.  
  60.     2.  Make sure the user level is set to painting or higher.
  61.  
  62.     3.  Select Pad Info from the Objects menu (ALT+O, D).
  63.  
  64.     The following dialog box is displayed on-screen:
  65.  
  66.  ┌───────────────────────────────────────────────────────────────────────┐
  67.  │                                                                       │
  68.  │ **** The Printed Documentation has a picture or screen shot here **** │
  69.  │                                                                       │
  70.  └───────────────────────────────────────────────────────────────────────┘
  71.     
  72.  
  73.     The Pad Info dialog box lets you:
  74.  
  75.         0  Change the name of the pad.
  76.  
  77.         0  See important information about the pad.
  78.  
  79.         0  Access the pad's script. (Scripts are discussed in Chapter 14.)
  80.  
  81.  
  82.  
  83.     ________________________________________________________________________
  84.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   193
  85.     ________________________________________________________________________
  86.  
  87.  
  88.     The dialog box includes the following information:
  89.  
  90.         0  The pad's name (which you can alter).
  91.  
  92.         0  The location of the pad on your hard disk.
  93.  
  94.         0  The number of backgrounds in the pad.
  95.  
  96.         0  The number of pages in the pad.
  97.  
  98.         0  The size of the pad in bytes. (This is helpful in determining
  99.            whether a pad will fit on a drive.)
  100.  
  101.         0  The amount of free space the pad contains. Free space can be
  102.            removed from the pad to decrease its size. (See "Compressing
  103.            Pads" below.)
  104.  
  105.  
  106.     CHANGING THE NAME OF A PAD
  107.  
  108.     From the Pad Info dialog box, described above, you can change the DOS
  109.     name of the pad. Simply type the new name into the Pad name text box and
  110.     press ENTER. You will receive an error message if you specify the name
  111.     of an existing pad or the new name is invalid.
  112.  
  113.  
  114.     SAVING A COPY OF YOUR PAD
  115.  
  116.     Oftentimes during pad development you may want to try out a new design
  117.     or change the look of some button or field as a test. Since HyperPAD
  118.     saves everything, it is a good idea to first make a backup copy of the
  119.     pad so that you can return to the original if you accidentally delete or
  120.     modify something.
  121.  
  122.  
  123.  
  124.     ________________________________________________________________________
  125.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   194
  126.     ________________________________________________________________________
  127.  
  128.  
  129.     To save a copy of a pad:
  130.  
  131.     1.  Select the Save a Copy command from the File menu (ALT+F, S).
  132.  
  133.     The following dialog box is presented on-screen:
  134.  
  135.  ┌───────────────────────────────────────────────────────────────────────┐
  136.  │                                                                       │
  137.  │ **** The Printed Documentation has a picture or screen shot here **** │
  138.  │                                                                       │
  139.  └───────────────────────────────────────────────────────────────────────┘
  140.     
  141.  
  142.     HyperPAD presents the current pad's name in the dialog box, but with a
  143.     .BAK extension.
  144.  
  145.     2.  If you want to save the pad under a different name, just BACKSPACE
  146.     over the name and type in a different one. You can specify the full DOS
  147.     path name of the pad, including a different drive letter and directory
  148.     if necessary.
  149.  
  150.     3.  Press ENTER or select <<Ok>>.
  151.  
  152.  
  153.     PROTECTING PADS
  154.  
  155.     Suppose you have a pad containing sensitive business information or your
  156.     bank account information. These types of pads can be password-protected
  157.     to guard your sensitive information from prowlers.
  158.  
  159.     In another instance, you might want the pad to be viewed by other
  160.     people, but you don't want the structure changed. Also, you may want to
  161.     protect your pad-development secrets from other users. All these things
  162.     can be accomplished by setting a password.
  163.  
  164.  
  165.  
  166.     ________________________________________________________________________
  167.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   195
  168.     ________________________________________________________________________
  169.  
  170.  
  171.     Finally, suppose you want a pad to be public to many users, but you
  172.     don't want it modified. For example, you may have a pad explaining
  173.     company policy that you want to give to all of your employees. You can
  174.     protect a pad from inadvertent modification by making it read-only.
  175.  
  176.     These forms of pad protection are:
  177.  
  178.         0  Setting the user level so that certain tools are not available
  179.  
  180.         0  Setting a password so that the user level cannot be modified
  181.  
  182.         0  Setting the pad to read-only so that it can be examined but not
  183.            modified
  184.  
  185.         0  Password-protecting the pad so that it can only be accessed if
  186.            you know the password
  187.  
  188.     Pads are protected using the Protect command on the File menu. When you
  189.     select this command, the Protect dialog box appears on-screen:
  190.  
  191.  ┌───────────────────────────────────────────────────────────────────────┐
  192.  │                                                                       │
  193.  │ **** The Printed Documentation has a picture or screen shot here **** │
  194.  │                                                                       │
  195.  └───────────────────────────────────────────────────────────────────────┘
  196.     
  197.  
  198.     To access the Protect dialog box:
  199.  
  200.     1.  Select the Protect command from the File menu (ALT+F, T).
  201.  
  202.     If the user level is set to browsing or typing, you'll have to press the
  203.     special key combination (SHIFT+ALT+F) to open the File menu.
  204.  
  205.     2.  If a password is set, you'll have type the correct password and
  206.     press ENTER.
  207.  
  208.  
  209.  
  210.     ________________________________________________________________________
  211.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   196
  212.     ________________________________________________________________________
  213.  
  214.  
  215.     SETTING THE USER LEVEL
  216.  
  217.     The user level determines the capabilities and commands available to the
  218.     user. The available user levels are summarized in the following table:
  219.  
  220.     User level:      Allows you to:
  221.     -----------------------------------------------------------------
  222.     Browsing         Click on buttons
  223.  
  224.     Typing           Type into fields
  225.  
  226.     Painting         Paint on the page or background using the painting
  227.                      tools
  228.  
  229.     Authoring        Access the script of buttons, fields, pages,
  230.                      backgrounds, and the pad
  231.  
  232.  
  233.     Each higher user level provides you with additional capabilities,
  234.     including all of the capabilities of the previous levels.
  235.  
  236.     If you set the user level to browsing or typing, HyperPAD displays the
  237.     short form of the File, Edit, and Workspace menus. Furthermore, the
  238.     Objects and Block menus do not appear on the menu bar.
  239.  
  240.     When the user level is set to typing or browsing, the Protect command
  241.     will not appear on the File menu. In this case, to access the Protect
  242.     command, press SHIFT+ALT+F. This safety check prevents casual users from
  243.     inadvertently changing the user level.
  244.  
  245.  
  246.     SETTING A PASSWORD
  247.  
  248.     Setting a password restricts access to the Protect dialog box. If a
  249.     password is set, you cannot access the Protect command on the File menu
  250.     without supplying the correct password.
  251.  
  252.     This is useful if you want to restrict the user's capabilities and
  253.     prevent knowledgeable users (who may know about the Protect command!)
  254.     from changing the protection.
  255.  
  256.  
  257.  
  258.     ________________________________________________________________________
  259.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   197
  260.     ________________________________________________________________________
  261.  
  262.  
  263.     To set a password:
  264.  
  265.     1.  Select the Protect command using the procedure described above.
  266.  
  267.     2.  Press ALT+S to set a password.
  268.  
  269.     The Set Password dialog box appears on-screen.
  270.  
  271.  ┌───────────────────────────────────────────────────────────────────────┐
  272.  │                                                                       │
  273.  │ **** The Printed Documentation has a picture or screen shot here **** │
  274.  │                                                                       │
  275.  └───────────────────────────────────────────────────────────────────────┘
  276.     
  277.  
  278.     3.  Type your password and press ENTER.
  279.  
  280.  
  281.  
  282.     ________________________________________________________________________
  283.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   198
  284.     ________________________________________________________________________
  285.  
  286.  
  287.     After you type your password, the Verify new password dialog box is
  288.     placed on-screen:
  289.  
  290.  ┌───────────────────────────────────────────────────────────────────────┐
  291.  │                                                                       │
  292.  │ **** The Printed Documentation has a picture or screen shot here **** │
  293.  │                                                                       │
  294.  └───────────────────────────────────────────────────────────────────────┘
  295.     
  296.  
  297.     4.  Verify your new password by retyping it, then press ENTER.
  298.  
  299.     After you type in your password for the second time, HyperPAD returns
  300.     you to the current page. Be sure to remember your password because there
  301.     is no way to access the Protect dialog box (and change your password)
  302.     without it.
  303.  
  304.     Setting a new password replaces the previous password, if there is one.
  305.  
  306.  
  307.     To remove a password (assuming one is set):
  308.  
  309.     1.  Select the Protect command using the procedure described above.
  310.  
  311.     2.  Press ALT+S to select the Set Password command.
  312.  
  313.     The Set Password dialog box is placed on-screen.
  314.  
  315.     3.  Press ALT+N to select the None command. This removes any password
  316.     and returns you to the page.
  317.  
  318.  
  319.     PASSWORD-PROTECTING A PAD
  320.  
  321.     Password-protecting a pad restricts access to it, requiring a user to
  322.     know the password in order to open the pad. This option is useful for
  323.     preventing pads containing sensitive data from being accessed by
  324.     unauthorized users.
  325.  
  326.  
  327.  
  328.     ________________________________________________________________________
  329.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   199
  330.     ________________________________________________________________________
  331.  
  332.  
  333.     If a pad is password-protected, you will be asked for the password only
  334.     the first time you open the pad during each HyperPAD session.
  335.     Thereafter, you can access the pad without entering the password.
  336.  
  337.  
  338.     To password-protect a pad:
  339.  
  340.     1.  Select the Protect command, as described above.
  341.  
  342.     2.  Set the Password Only option on.
  343.  
  344.     3.  Select Ok (ALT+O).
  345.  
  346.     You won't be able to see the effects of this option until you exit, run
  347.     HyperPAD, then open the pad.
  348.  
  349.  
  350.     READ-ONLY PADS
  351.  
  352.     Read-only pads cannot be modified. The user is prevented from typing
  353.     into fields, painting, changing objects, or performing any other
  354.     activity that would modify the pads.
  355.  
  356.     Because read-only pads can't be modified, more than one user on a
  357.     network can browse a pad at the same time. For example, if your company
  358.     policy were described in a pad, you could set the read-only option and
  359.     place the pad in a directory on a network. In this manner, many users
  360.     could access the policy at the same time. (This option requires DOS 3.0
  361.     or higher.)
  362.  
  363.  
  364.     To set a pad to read-only:
  365.  
  366.     1.  Select the Protect command using the procedure described earlier.
  367.  
  368.     2.  Set the Read-only option to on.
  369.  
  370.     3.  Select Ok.
  371.  
  372.  
  373.     COMPRESSING PADS
  374.  
  375.     You may have noticed that the Pad Info dialog box contains a Free Space
  376.     otion, which reports the number of bytes of free space within the pad.
  377.     Free space accumulates while you're modifying or creating pads.
  378.  
  379.     As you use your pad, HyperPAD objects change size and empty spaces form
  380.     within the disk file. These spaces are used, resized, and emptied as
  381.     needed while you're working with the pad. In fact, HyperPAD manages free
  382.     space in your pad without your knowing it. However, to conserve disk
  383.     space, HyperPAD gives you the ability to remove all the free space in
  384.     the pad.
  385.  
  386.  
  387.  
  388.     ________________________________________________________________________
  389.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   200
  390.     ________________________________________________________________________
  391.  
  392.  
  393.     To remove the free space in a pad:
  394.  
  395.     1.  Select the Pad Info command from the Objects menu (ALT+O, D) and
  396.     check the free space. (The user level has to be set at least to
  397.     Painting.)
  398.  
  399.     The free space is shown in the Pad Info dialog box. It is not especially
  400.     useful to compress a pad to recover a small number of bytes. However, if
  401.     there is a large amount of free space, compressing the pad can improve
  402.     the pad's performance.
  403.  
  404.     2.  Select Compress from the File menu.
  405.  
  406.     A message indicating the status of the compress is displayed during the
  407.     compression process.
  408.  
  409.     Pad compression requires twice the disk space of the original pad. For
  410.     example, if the size of the pad is 10,000 bytes, to compress the pad you
  411.     will need 10,000 free bytes of space on your disk.
  412.  
  413.  
  414.     CREATING A NEW PAD
  415.  
  416.     When you first begin designing, you may start by customizing your
  417.     existing pads by adding paint, buttons, and fields to enhance their
  418.     functionality. However, you may eventually decide that you want to begin
  419.     an application entirely from scratch.
  420.  
  421.     It's a good idea to create a new pad whenever you want to explore
  422.     features of HyperPAD with which you're unfamiliar. This provides a
  423.     "clean slate" on which to experiment with the painting and object-
  424.     manipulation tools.
  425.  
  426.  
  427.     To create a new pad:
  428.  
  429.     1.  Select the New command from the File menu (ALT+F, N).
  430.  
  431.  
  432.  
  433.     ________________________________________________________________________
  434.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   201
  435.     ________________________________________________________________________
  436.  
  437.  
  438.     The New Pad dialog box will appear on-screen:
  439.  
  440.  ┌───────────────────────────────────────────────────────────────────────┐
  441.  │                                                                       │
  442.  │ **** The Printed Documentation has a picture or screen shot here **** │
  443.  │                                                                       │
  444.  └───────────────────────────────────────────────────────────────────────┘
  445.     
  446.  
  447.     2.  Type a new pad name into the New pad name text box. The name cannot
  448.     exceed eight characters. HyperPAD assumes a .PAD file extension.
  449.  
  450.     Include the entire path name of the new pad if the directory listed in
  451.     the dialog box is incorrect.
  452.  
  453.     3.  If you want the new pad to be created with a copy of the current
  454.     background, select the Keep current background option.
  455.  
  456.     Setting this option allows you to create a new pad that uses the current
  457.     background as a template for the new pad. For example, to quickly create
  458.     a database pad similar in structure to the Phone pad, you would first go
  459.     to the Phone pad, then select the New command from the File menu and set
  460.     this option.
  461.  
  462.     4.  If you want to alter the number of lines that are displayed on the
  463.     screen, set the Screen mode option to either 25, 43, or 50 lines.
  464.  
  465.     You can only set these options if you have an EGA or a VGA video card.
  466.     Select the 25 lines option to create pads compatible with all systems.
  467.  
  468.     5.  Select <<Ok>> to accept your selections and create a new pad.
  469.  
  470.     The new pad consists of a blank background and a blank page.
  471.  
  472.  
  473.  
  474.     ________________________________________________________________________
  475.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   202
  476.     ________________________________________________________________________
  477.  
  478.  
  479.     WHERE TO GO FROM HERE
  480.  
  481.     Your next step depends on the type of pad you want to create.
  482.  
  483.     If you intend to create a database, for example, you should proceed to
  484.     the section on "Working with Backgrounds" later in this chapter. This
  485.     will help you understand how the background defines your database
  486.     structure.
  487.  
  488.     If you intend to create an information system, you might want to begin
  489.     by creating some additional blank pages and then begin to place
  490.     information on those pages. Thus, you should proceed to the next
  491.     section, "Working with Pages."
  492.  
  493.  
  494.     WORKING WITH PAGES
  495.  
  496.     Pages contain most of a pad's information. Together with their
  497.     associated backgrounds, they define the structure of your pad. This
  498.     section examines pages in detail, including how to create, copy, paste,
  499.     and delete them.
  500.  
  501.     As a browser, you used pages to hold information in your database pads.
  502.     Additionally, as an author, you will use pages to display paint, text,
  503.     buttons, and fields.
  504.  
  505.  
  506.     PAGE INFO
  507.  
  508.     As a pad author, you may need information about a particular page, such
  509.     as how many buttons and fields are on the page, the name of the page,
  510.     and its page number within the pad. You'll find some of this
  511.     information, such as the name and number of the page, on the status bar.
  512.     Here's how to get additional information.
  513.  
  514.  
  515.     To access information about the current page:
  516.  
  517.     1.  Navigate to the page you want information about. (You can use the
  518.     PGUP or PGDN keys to pinpoint the page.)
  519.  
  520.     2.  Select the Page Info command on the Objects menu (ALT+O, P). (Make
  521.     sure the user level is set to Painting or higher.)
  522.  
  523.  
  524.  
  525.     ________________________________________________________________________
  526.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   203
  527.     ________________________________________________________________________
  528.  
  529.  
  530.     The Page Info dialog box is placed on- screen.
  531.  
  532.  ┌───────────────────────────────────────────────────────────────────────┐
  533.  │                                                                       │
  534.  │ **** The Printed Documentation has a picture or screen shot here **** │
  535.  │                                                                       │
  536.  └───────────────────────────────────────────────────────────────────────┘
  537.     
  538.  
  539.     Using the Page Info dialog box, pictured above, you can:
  540.  
  541.         0  Change the name of a page.
  542.  
  543.         0  Determine important information about the page, including the ID,
  544.            which page it is, and the number of buttons and fields contained
  545.            on the page.
  546.  
  547.         0  Access the page's script. (See the PADtalk Reference Guide for
  548.            more details.)
  549.  
  550.         0  Change the status of a page so that it can't be deleted.
  551.  
  552.  
  553.     CHANGING THE NAME OF A PAGE
  554.  
  555.     The page name helps you distinguish which page you're currently viewing.
  556.     The name of the page along with the page number always appear on the
  557.     status bar. You might choose a name that best reflects the purpose of
  558.     the page. For example, if the page contains information about today's
  559.     appointments, you might name it "Appointments for 5/12/90."
  560.  
  561.  
  562.  
  563.     ________________________________________________________________________
  564.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   204
  565.     ________________________________________________________________________
  566.  
  567.  
  568.     To change the name of the page:
  569.  
  570.     1.  Access the Page Info dialog box using the above procedure.
  571.  
  572.     2.  Type the new name into the Page name text box.
  573.  
  574.     3.  Press ENTER.
  575.  
  576.     You can use the name to refer to a page in PADtalk. (See the PADtalk
  577.     Reference Guide.)
  578.  
  579.  
  580.     PROTECTING A PAGE
  581.  
  582.     You can protect a page from being deleted by checking the No delete
  583.     option in the Page Info dialog box. Since HyperPAD can't undo the Delete
  584.     Page command, you can use this safety feature to prevent any mistakes.
  585.  
  586.     For example, if there is a name in your Phone pad that you don't want
  587.     removed, you can set this option.
  588.  
  589.  
  590.     REDESIGNING THE PAGES IN A PAD
  591.  
  592.     This section describes how to copy, paste, and delete pages in your pad.
  593.     These commands not only provide you with a way of reorganizing the pages
  594.     in your pads, but they also give you a way to get new pads up and
  595.     running quickly.
  596.  
  597.     If you want to create a new pad borrowing some buttons, fields, or paint
  598.     from an existing pad, then use the Copy Page command to copy the page
  599.     from the existing pad and paste it into the new pad. Once the page is
  600.     pasted, you can then modify the paint and objects, tailoring the page
  601.     for your own needs.
  602.  
  603.     The Copy Page, Cut Page, and Paste Page commands are only available when
  604.     the user level is set to painting or higher. The Delete Page command is
  605.     available at all user levels.
  606.  
  607.  
  608.     COPYING PAGES
  609.  
  610.     When you copy a page in HyperPAD, you copy everything you see on screen,
  611.     including the page's background and all of the buttons and fields.
  612.  
  613.  
  614.  
  615.     ________________________________________________________________________
  616.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   205
  617.     ________________________________________________________________________
  618.  
  619.  
  620.     To copy a page:
  621.  
  622.     1.  Set the user level to painting or higher.
  623.  
  624.     2.  Navigate to the page you want to copy. You may have to use the PGUP
  625.     or PGDN keys to find the page you want.
  626.  
  627.     3.  Select the Copy Page command from the Edit menu (ALT+E, O).
  628.  
  629.     A copy of the current page is placed on the clipboard.
  630.  
  631.     If there was anything previously in the clipboard, the copied page will
  632.     replace it. If you want to retrieve the copied page, use the Paste Page
  633.     command.
  634.  
  635.     Every time you copy a page, the background used by that page is also
  636.     copied. Thus, when you paste the page into a different pad, the
  637.     background is pasted, too.
  638.  
  639.  
  640.     CUTTING PAGES
  641.  
  642.     The Cut Page command copies a page to the clipboard, then deletes it
  643.     from your pad. Everything on the page, including all of the buttons and
  644.     fields, is copied also.
  645.  
  646.  
  647.     To cut pages:
  648.  
  649.     1.  Set the user level to painting or higher.
  650.  
  651.     2.  Navigate to the page you want to cut. You may want to use the PGUP
  652.     and PGDN keys to change pages until you find the correct one.
  653.  
  654.     3.  Select the Cut Page command from the Edit menu (ALT+E, G).
  655.  
  656.     A copy of the current page is placed on the clipboard, and the page is
  657.     removed from the pad.
  658.  
  659.     The clipboard is a temporary storage area for pad elements that have
  660.     been cut or copied. If you want to retrieve information from the
  661.     clipboard, you must do so before you cut or copy another element,
  662.     because the clipboard only holds one item at a time.
  663.  
  664.  
  665.  
  666.     ________________________________________________________________________
  667.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   206
  668.     ________________________________________________________________________
  669.  
  670.  
  671.     PASTING PAGES
  672.  
  673.     The Paste Page command inserts a page from the clipboard after the
  674.     current page in the pad. You can copy a page using the Copy Page and Cut
  675.     Page commands on the Edit menu.
  676.  
  677.  
  678.     To paste a page:
  679.  
  680.     1.  Use the procedure described earlier to copy or cut a page to the
  681.     clipboard.
  682.  
  683.     2.  Navigate to the page that you want the new page to appear after.
  684.  
  685.     4.  Select the Paste Page command from the Edit menu (ALT+E, P).
  686.  
  687.     The page in the clipboard is placed in the pad after the current page
  688.     and then becomes the current page.
  689.  
  690.  
  691.     PASTING PAGES BETWEEN PADS
  692.  
  693.     The Copy and Paste commands can be used to copy pages between different
  694.     pads. In doing so, the background is carried with the page and pasted,
  695.     too.
  696.  
  697.     The Copy Page and Cut Page commands copy both the page and the
  698.     background to the clipboard. If you're pasting a page into the same pad
  699.     that it was copied from, only the page will be inserted (because the
  700.     corresponding background already exists in that pad). However, if you
  701.     paste a page into another pad, you'll also paste that page's background.
  702.     HyperPAD will recognize that the original background and the pasted
  703.     background are the same until you exit HyperPAD or run another program.
  704.     Thus, if you copy many pages that all use the same background between
  705.     two pads, the background will only be pasted once.
  706.  
  707.  
  708.     PASTING A PAGE AS THE FIRST PAGE OF A PAD
  709.  
  710.     The Paste Page command always inserts the pasted page after the current
  711.     page. Since the insertion always occurs in this manner, you have to do
  712.     an extra step in order for the pasted page to become the first page of a
  713.     pad.
  714.  
  715.  
  716.  
  717.     ________________________________________________________________________
  718.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   207
  719.     ________________________________________________________________________
  720.  
  721.  
  722.     To paste a page as the first page:
  723.  
  724.     1.  Press CTRL+PGUP to view the first page of the pad.
  725.  
  726.     2.  Select the Paste Page command from the Edit menu (ALT+E, P).
  727.  
  728.     The page will be inserted as page 2, and you will be viewing the pasted
  729.     page.
  730.  
  731.     3.  Press CTRL+PGUP again to change to the first page of the pad.
  732.  
  733.     4.  Select the Cut Page command from the Edit menu (ALT+E, G).
  734.  
  735.     5.  Select the Paste Page command from the Edit menu (ALT+E, P). Now,
  736.     the first page of the pad is the one that you originally copied.
  737.  
  738.  
  739.     DELETING PAGES
  740.  
  741.     Deleting a page removes the page from the pad. Use caution because the
  742.     deleted page cannot be recovered using Undo, and a copy is not placed
  743.     into the clipboard.
  744.  
  745.     If you feel unsure about deleting a page, use the Save a Copy command on
  746.     the File menu to create a backup copy of your pad under a different
  747.     name.
  748.  
  749.  
  750.     To delete pages:
  751.  
  752.     1.  Make sure the user level is set to painting or higher.
  753.  
  754.     2.  Access the page you want to delete.
  755.  
  756.     3.  Select Delete Page from the Edit menu (ALT+E, D).
  757.  
  758.     The current page is removed from the pad.
  759.  
  760.     You can't delete the only remaining page in a pad. In order to remove
  761.     the last page from a pad, you must delete the pad using the Delete
  762.     command on the File menu.
  763.  
  764.  
  765.  
  766.     ________________________________________________________________________
  767.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   208
  768.     ________________________________________________________________________
  769.  
  770.  
  771.     WORKING WITH BACKGROUNDS
  772.  
  773.  
  774.     OVERVIEW
  775.  
  776.     Each page in a pad is assigned to a particular background. You can think
  777.     of the page as a transparency overlaid on the background. The pad
  778.     building elements on the background--such as paint, buttons, and
  779.     fields--show through to the page (unless, of course, the elements on the
  780.     page cover them up).
  781.  
  782.     A background can be used by many pages, in which case the pad building
  783.     elements--such as paint, buttons, and fields--are visible on many pages.
  784.     Thus, the background serves as the backdrop (or structure) for all of
  785.     the pages that use it.
  786.  
  787.     If the background is empty (i.e., it contains no paint, buttons, or
  788.     fields), then the structure of the pad is basically determined by the
  789.     contents of the pages. This type of pad usually has few similar visual
  790.     elements that are common to many pages.
  791.  
  792.  
  793.     BACKGROUND INFO
  794.  
  795.     The Background Info dialog box contains information that you can use
  796.     while developing your pads, including the number of pages that use the
  797.     background and the background's name and ID.
  798.  
  799.  
  800.     To access the Background Info dialog box:
  801.  
  802.     1.  Navigate to the page that uses the background you want information
  803.     on. You may have to use the PGUP and PGDN keys to change to the
  804.     appropriate page.
  805.  
  806.     2.   Make sure the user level is set to painting or higher.
  807.  
  808.     3.  Select the Bkgnd Info command from the Objects menu (ALT+O, K).
  809.  
  810.  
  811.  
  812.     ________________________________________________________________________
  813.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   209
  814.     ________________________________________________________________________
  815.  
  816.  
  817.     The Background Info dialog box will be placed on-screen:
  818.  
  819.  ┌───────────────────────────────────────────────────────────────────────┐
  820.  │                                                                       │
  821.  │ **** The Printed Documentation has a picture or screen shot here **** │
  822.  │                                                                       │
  823.  └───────────────────────────────────────────────────────────────────────┘
  824.     
  825.  
  826.     The Background Info dialog box contains the following information and
  827.     options:
  828.  
  829.         0  The name of the background.
  830.  
  831.         0  The number of pages that use this background. This number will
  832.            never be less than one.
  833.  
  834.         0  The number of buttons and fields contained on this background.
  835.  
  836.         0  The No delete option.
  837.  
  838.         0  Script button to take you to the background's script.
  839.  
  840.  
  841.     CHANGING THE NAME OF A BACKGROUND
  842.  
  843.     You can change the name of a background using the Background Info dialog
  844.     box. You should choose a name that best reflects what the background is
  845.     used for. For example, if the background is used as a template for your
  846.     recipe database, then you might name the background "Recipe Template."
  847.  
  848.  
  849.  
  850.     ________________________________________________________________________
  851.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   210
  852.     ________________________________________________________________________
  853.  
  854.  
  855.     To change the name of a background:
  856.  
  857.     1.  Access the Background Info dialog box using the above procedure.
  858.  
  859.     2.  Type the new name of the background in the text box
  860.     and press ENTER.
  861.  
  862.  
  863.     PROTECTING A BACKGROUND
  864.  
  865.     You can protect a background from being accidentally deleted by setting
  866.     the No delete option in the Background Info dialog box. This safety
  867.     feature prevents the last page that uses this background from being
  868.     deleted.
  869.  
  870.  
  871.     EDITING THE BACKGROUND
  872.  
  873.     You can add buttons, fields, and paint to the background the same way
  874.     that you do with the page. Everything you add to a background will
  875.     appear on every page that uses that background.
  876.  
  877.  
  878.     To access the background:
  879.  
  880.     Select the Background command from the Edit menu (ALT+E, B).
  881.  
  882.     You can tell if you are editing the background when the status bar
  883.     displays "BKGND" or the Background command on the Edit menu is checked.
  884.  
  885.     To return to editing the page, just select ALT+E, B again (the command
  886.     toggles you between the page and the background).
  887.  
  888.  
  889.     DELETING BACKGROUNDS
  890.  
  891.     In order to delete a background, you must delete every page that uses
  892.     that background. Be careful when you delete the last page that uses a
  893.     particular background since there will be no warning indicating that the
  894.     background will also be deleted.
  895.  
  896.  
  897.     COPYING A BACKGROUND WITHIN THE SAME PAD
  898.  
  899.     There is no direct way to make a copy of a background within the same
  900.     pad. You can, however, achieve the same effect by using another pad as a
  901.     temporary holder for the page and the background:
  902.  
  903.  
  904.  
  905.     ________________________________________________________________________
  906.               Chapter 12: Manipulating Pads, Pages, and Backgrounds   211
  907.     ________________________________________________________________________
  908.  
  909.  
  910.     To make a copy of a background in the same pad:
  911.  
  912.     1.  Navigate to a page that uses the background that you want to copy.
  913.  
  914.     2.  Select the Copy Page command (ALT+E, O). The page and the background
  915.     are copied to the clipboard.
  916.  
  917.     3.  Create a new pad called TEMP. (Select the New command from the File
  918.     menu [ALT+F, N] and type TEMP, then press ENTER.)
  919.  
  920.     4.  Select the Paste Page command (ALT+E, P) to paste the page and the
  921.     background into the new pad.
  922.  
  923.     5.  Exit HyperPAD and return to DOS. You must exit all the way to DOS to
  924.     make HyperPAD "forget" the fact that the two backgrounds are the same.
  925.  
  926.     6.  Run HyperPAD again and load the TEMP pad.
  927.  
  928.     7.  Select the Copy Page command (ALT+E, O). This copies the page and
  929.     the background.
  930.  
  931.     8.  Navigate to the original pad.
  932.  
  933.     9.  Select the Paste Page command from the Edit menu. Both the page and
  934.     the background will be pasted into the pad.
  935.  
  936.  
  937.     CONCLUSION
  938.  
  939.     This chapter described pads and the components from which they are
  940.     constructed, including pages and backgrounds. You learned how to perform
  941.     some general maintenance tasks such as saving a copy of a pad,
  942.     protecting a pad, and compressing a pad. You learned the relationship
  943.     between the pages and backgrounds and how they fit together, as well as
  944.     how to manipulate them during pad design.
  945.