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

  1.  
  2.  
  3.  
  4.  
  5.     ________________________________________________________________________
  6.                                          Chapter 13: Painting Tools   213
  7.     ________________________________________________________________________
  8.  
  9.  
  10.     CHAPTER 13:  PAINTING TOOLS
  11.  
  12.     HyperPAD's painting tools let you create visually appealing screens
  13.     tailored to your audience's needs. The appearance of a pad is important
  14.     because a design that is carefully planned and pleasing to look at is
  15.     more effective in presenting information.
  16.  
  17.     In this chapter, you'll learn:
  18.  
  19.         0  The organization of the text screen.
  20.  
  21.         0  How to select and use the painting tools.
  22.  
  23.         0  How to use the tool box.
  24.  
  25.         0  How each painting tool works so that you can modify your pages
  26.            and backgrounds.
  27.  
  28.         0  Special tips describing how to use the painting tools more
  29.            effectively.
  30.  
  31.  
  32.  
  33.     ________________________________________________________________________
  34.                                          Chapter 13: Painting Tools   214
  35.     ________________________________________________________________________
  36.  
  37.  
  38.     THE PAINTING ENVIRONMENT
  39.  
  40.  
  41.     THE SCREEN
  42.  
  43.     Each page is overlaid on top of a background, creating a composite
  44.     referred to as the screen. The screen is what you see when you look at
  45.     your computer display.
  46.  
  47.     The screen is structured in composition, made up of a grid of rectangles
  48.     called character cells. Depending on your screen resolution, there are
  49.     normally 80 cells across and 25 cells down. Each cell contains
  50.     aaracterandnd an attribute.
  51.  
  52.  ┌───────────────────────────────────────────────────────────────────────┐
  53.  │                                                                       │
  54.  │ **** The Printed Documentation has a picture or screen shot here **** │
  55.  │                                                                       │
  56.  └───────────────────────────────────────────────────────────────────────┘
  57.     
  58.  
  59.  
  60.  
  61.     ________________________________________________________________________
  62.                                          Chapter 13: Painting Tools   215
  63.     ________________________________________________________________________
  64.  
  65.  
  66.     The previous illustration shows you how the screen is divided and how
  67.     characters and attributes fit into a character cell.
  68.  
  69.     HyperPAD's painting tools allow you to add or delete characters and
  70.     attributes in the cells that make up the backgrounds and pages in a pad.
  71.  
  72.  
  73.     CHARACTERS AND ATTRIBUTES
  74.  
  75.     As described above, each cell on the screen contains a character and an
  76.     attribute. The range of characters you can include in a cell is from 0
  77.     to 255 (known as ASCII values). For example, the character A is
  78.     represented by number 65.  In Appendix 8 of the PADtalk Reference Guide,
  79.     there is a table showing all of the 256 characters.
  80.  
  81.     The attribute portion of a cell is a number that represents a
  82.     combination of a foreground color and a background color. Attributes
  83.     range in value from 0 to 255.
  84.  
  85.     When a character is placed inside a cell, it is displayed with the
  86.     foreground color of the attribute, while all other remaining space in
  87.     the cell appears in the background color.
  88.  
  89.  ┌───────────────────────────────────────────────────────────────────────┐
  90.  │                                                                       │
  91.  │ **** The Printed Documentation has a picture or screen shot here **** │
  92.  │                                                                       │
  93.  └───────────────────────────────────────────────────────────────────────┘
  94.     
  95.  
  96.     As you know, each HyperPAD screen is a combination of a page and
  97.     background layer. You may be wondering how elements on the background
  98.     are visible on the page.
  99.  
  100.     Cells on the background are compared with the corresponding cells on the
  101.     page. If the page cell contains the transparent character, the character
  102.     from the background cell shows through. The same applies for the
  103.     attribute.
  104.  
  105.     When a new page is created, all the cells on that page are filled with
  106.     the transparent character (ASCII number 0) and the transparent attribute
  107.     (7, or grey on black). Thus, the entire background shows through a newly
  108.     created page.
  109.  
  110.  
  111.  
  112.     ________________________________________________________________________
  113.                                          Chapter 13: Painting Tools   216
  114.     ________________________________________________________________________
  115.  
  116.  
  117.     The following illustration demonstrates how characters on the background
  118.     show through onto the page.
  119.  
  120.  ┌───────────────────────────────────────────────────────────────────────┐
  121.  │                                                                       │
  122.  │ **** The Printed Documentation has a picture or screen shot here **** │
  123.  │                                                                       │
  124.  └───────────────────────────────────────────────────────────────────────┘
  125.     
  126.  
  127.     In the next illustration, the background contains the character A and
  128.     the page contains the character B in identical positions. Notice that
  129.     the background character is not seen, as the page's character blocks it
  130.     from view.
  131.  
  132.  ┌───────────────────────────────────────────────────────────────────────┐
  133.  │                                                                       │
  134.  │ **** The Printed Documentation has a picture or screen shot here **** │
  135.  │                                                                       │
  136.  └───────────────────────────────────────────────────────────────────────┘
  137.     
  138.  
  139.  
  140.  
  141.     ________________________________________________________________________
  142.                                          Chapter 13: Painting Tools   217
  143.     ________________________________________________________________________
  144.  
  145.  
  146.     The next illustration demonstrates the difference between the
  147.     transparent character and the space character. It might appear to the
  148.     human eye that the space and transparent characters are the same;
  149.     however, as you can see from the illustration, that is not the case.
  150.  
  151.  ┌───────────────────────────────────────────────────────────────────────┐
  152.  │                                                                       │
  153.  │ **** The Printed Documentation has a picture or screen shot here **** │
  154.  │                                                                       │
  155.  └───────────────────────────────────────────────────────────────────────┘
  156.     
  157.  
  158.  
  159.     CHARACTER CELL INFO
  160.  
  161.     You can determine the contents of a character cell using the Character
  162.     Cell Info dialog box. This box describes both the character and the
  163.     attribute that currently occupy a character cell.
  164.  
  165.     Use this command if you're having trouble determining whether a
  166.     character cell is transparent or contains a space, or if you want to
  167.     know the attribute within a cell.
  168.  
  169.  
  170.  
  171.     ________________________________________________________________________
  172.                                          Chapter 13: Painting Tools   218
  173.     ________________________________________________________________________
  174.  
  175.  
  176.     To access the Character Cell Info dialog box:
  177.  
  178.     1.  Place the cursor on the cell that you want information about.
  179.  
  180.     2.  Press F9.
  181.  
  182.     The Character Cell Info dialog box, shown here, appears on-screen.
  183.  
  184.  ┌───────────────────────────────────────────────────────────────────────┐
  185.  │                                                                       │
  186.  │ **** The Printed Documentation has a picture or screen shot here **** │
  187.  │                                                                       │
  188.  └───────────────────────────────────────────────────────────────────────┘
  189.     
  190.  
  191.  
  192.     THE PAINT ATTR AND ASCII CHAR
  193.  
  194.     HyperPAD maintains a current character and a current attribute. As you
  195.     design your pages and backgrounds, you will constantly be changing the
  196.     values of these settings.
  197.  
  198.     When you paint color on the page or background, you are really setting
  199.     the attribute portion of the character cell to the value of the Paint
  200.     attr. Similarly, when you use the Char Paint tool, you are really
  201.     assigning the character portion of the character cell to the value of
  202.     the ASCII char.
  203.  
  204.  
  205.  
  206.     ________________________________________________________________________
  207.                                          Chapter 13: Painting Tools   219
  208.     ________________________________________________________________________
  209.  
  210.  
  211.     To determine the Paint attr and ASCII char values:
  212.  
  213.     1.  Select a painting tool from the Tools menu.
  214.  
  215.     2.  Open the Workspace menu (ALT+W). The Workspace menu, shown below,
  216.     will be placed on-screen.
  217.  
  218.  ┌───────────────────────────────────────────────────────────────────────┐
  219.  │                                                                       │
  220.  │ **** The Printed Documentation has a picture or screen shot here **** │
  221.  │                                                                       │
  222.  └───────────────────────────────────────────────────────────────────────┘
  223.     
  224.  
  225.     Displayed to the right of the ASCII char and Paint attr commands are the
  226.     values of the current character and paint attribute.
  227.  
  228.     3.  To remove the menu from the screen, press ESC.
  229.  
  230.  
  231.     PAINTING UNDER THE MENU BAR AND THE STATUS BAR
  232.  
  233.     When you begin using the painting tools, you may find it necessary to
  234.     use the screen areas normally hidden by the menu and status bars.
  235.     Because of this, HyperPAD gives you a way to quickly hide and show the
  236.     menu and status bars.
  237.  
  238.  
  239.     To toggle the menu and status bars on and off:
  240.  
  241.     1.  Press ALT+SPACE.
  242.  
  243.     The menu and status bars will be removed from the screen.
  244.  
  245.     2.  Press ALT+SPACE to place them back on-screen.
  246.  
  247.  
  248.  
  249.     ________________________________________________________________________
  250.                                          Chapter 13: Painting Tools   220
  251.     ________________________________________________________________________
  252.  
  253.  
  254.     SELECTING A PAINTING TOOL
  255.  
  256.     HyperPAD provides many tools for you to select from when you paint. This
  257.     section describes the various methods used to select a painting tool.
  258.  
  259.     The easiest way, of course, is to select a painting tool from the Tools
  260.     menu. However, when you're painting, you're constantly changing from
  261.     tool to tool, making menu selection tedious. HyperPAD provides you with
  262.     both shortcut keys and a tool box for quick tool selection.
  263.  
  264.  
  265.     HYPERPAD TOOLS
  266.  
  267.     HyperPAD provides you with a palette of tools from which you can pick in
  268.     order to paint on the page or background. The available tools are
  269.     summarized in the following table.
  270.  
  271.     Tool:        Shortcut key:      Purpose:
  272.     ------------------------------------------------------------------
  273.     Text         CTRL+T             Adds text
  274.  
  275.     Paint        CTRL+P             Adds color
  276.  
  277.     Erase        CTRL+E             Removes attributes and characters
  278.  
  279.     Line         CTRL+L             Draws single or double lines
  280.  
  281.     Mark Block   CTRL+M             Marks a block that you can move, copy,
  282.                                     and, and paste or perform a block
  283.                                     command on
  284.  
  285.     Char Paint   CTRL+H             Paints with the current ASCII character
  286.  
  287.     Selector     CTRL+S             Manipulates buttons and fields
  288.  
  289.     Browse       CTRL+B             Allows you to use the pads
  290.  
  291.     THE TOOL BOX PALETTE
  292.  
  293.     Using the tool box popup window, mouse users can quickly select a
  294.     painting tool.
  295.  
  296.     To display the tool box, select the Tool Box command from the Workspace
  297.     menu (ALT+W, T).
  298.  
  299.  
  300.  
  301.     ________________________________________________________________________
  302.                                          Chapter 13: Painting Tools   221
  303.     ________________________________________________________________________
  304.  
  305.  
  306.     The tool box will now stay on-screen until you close it.
  307.  
  308.  ┌───────────────────────────────────────────────────────────────────────┐
  309.  │                                                                       │
  310.  │ **** The Printed Documentation has a picture or screen shot here **** │
  311.  │                                                                       │
  312.  └───────────────────────────────────────────────────────────────────────┘
  313.     
  314.  
  315.  
  316.     To move the tool box using the mouse:
  317.  
  318.     Place the mouse pointer on the border of the tool box and drag it to a
  319.     new location, then release the button.
  320.  
  321.  
  322.     Selecting a tool from the tool box:
  323.  
  324.     Click the mouse on the tool you want to select.
  325.  
  326.     A triangle will appear next to the tool you selected, indicating that it
  327.     is the current tool.
  328.  
  329.  
  330.     SPECIAL FUNCTIONS OF THE TOOL BOX
  331.  
  332.     Double-clicking the mouse on different tools in the tool box provides a
  333.     convenient shortcut for many of the painting commands.
  334.  
  335.         0  You can change the current paint attribute by double-clicking
  336.            on the Paint tool in the tool box. When you do, the Paint
  337.            Attribute dialog box is displayed, letting you pick from the
  338.            available attributes.
  339.  
  340.         0  By double-clicking on the Char Paint tool in the tool box, you
  341.            can set the current ASCII char, which, when combined with the
  342.            Char Paint tool, lets you paint characters on the screen.
  343.  
  344.         0  The line type can also be toggled (between single and double
  345.            lines) by double-clicking on the Line tool.
  346.  
  347.  
  348.     REMOVING THE TOOL BOX
  349.  
  350.     The tool box can be removed from the screen by selecting the Tool Box
  351.     command from the Workspace menu (ALT+W, T). You can also click the mouse
  352.     on the close box on the upper left corner of the tool box.
  353.  
  354.  
  355.  
  356.     ________________________________________________________________________
  357.                                          Chapter 13: Painting Tools   222
  358.     ________________________________________________________________________
  359.  
  360.  
  361.     USING THE PAINTING TOOLS
  362.  
  363.     Before you can begin painting, check to make sure the user level is set
  364.     to painting or higher. As you proceed through this chapter, you may find
  365.     it helpful to try out the described procedures. If you want to follow
  366.     along, you should create a new pad on which to practice so that you
  367.     don't have to worry about changing an existing pad.
  368.  
  369.  
  370.     USING THE KEYBOARD AND THE MOUSE
  371.  
  372.     The following table describes the various methods used to move around
  373.     the page or background while working with the painting tools. When
  374.     you're painting, the cursor location is displayed on the status bar.
  375.  
  376.  
  377.     Key:                 Moves the cursor:
  378.     ------------------------------------------------------
  379.     Up arrow             Up one line
  380.  
  381.     Down arrow           Down one line
  382.  
  383.     Left arrow           Left one character
  384.  
  385.     Right arrow          Right one character
  386.  
  387.     HOME                 To the left edge of the screen
  388.  
  389.     END                  To the right edge of the screen
  390.  
  391.     CTRL+Up arrow        Up two lines
  392.  
  393.     CTRL+Down arrow      Down two lines
  394.  
  395.     CTRL+Left arrow      Left four characters
  396.  
  397.     CTRL+Right arrow     Right four characters
  398.  
  399.     To use the mouse to position the cursor, simply move the pointer to
  400.     where you want the cursor and click the right mouse button.
  401.  
  402.  
  403.  
  404.     ________________________________________________________________________
  405.                                          Chapter 13: Painting Tools   223
  406.     ________________________________________________________________________
  407.  
  408.  
  409.     APPLYING A PAINTING TOOL
  410.  
  411.     All of the painting tools are used the same way. When you're painting,
  412.     you are free to move the cursor anywhere on the screen using the keys in
  413.     the preceding table. To apply a tool, you move the cursor the same way
  414.     but with the SHIFT key held down.
  415.  
  416.  
  417.     To use a painting tool with the keyboard:
  418.  
  419.     1.  Select the painting tool you want (use one of the shortcut keys
  420.     described earlier).
  421.  
  422.     2.  While holding down the SHIFT key, move the cursor using the arrow
  423.     keys.
  424.  
  425.     To move the cursor faster while applying a painting tool, hold down
  426.     CTRL+SHIFT while moving the cursor with the arrow keys.
  427.  
  428.  
  429.     To use a painting tool with the mouse:
  430.  
  431.     Hold down the left mouse button and drag the mouse.
  432.  
  433.     To paint in a straight line, hold down the SHIFT key while dragging the
  434.     mouse.
  435.  
  436.     As an example, suppose that you wanted to draw a box:
  437.  
  438.     1.  Press CTRL+L to select the Line tool.
  439.  
  440.     2.  Move the cursor to where you want one of the corners of the box to
  441.     be located.
  442.  
  443.     3.  Hold down the SHIFT key while using the arrow keys to outline your
  444.     box.
  445.  
  446.  
  447.     HOW PAINTING AFFECTS OBJECTS
  448.  
  449.     Painting occurs on the page or background layer behind all of the
  450.     buttons and fields. Even though you're unable to see your screen
  451.     modifications, they are indeed happening behind the objects. Use the
  452.     Selector tool to move objects out of the way so you can see beneath
  453.     them.
  454.  
  455.  
  456.  
  457.     ________________________________________________________________________
  458.                                          Chapter 13: Painting Tools   224
  459.     ________________________________________________________________________
  460.  
  461.  
  462.     SELECTING THE PAINT ATTRIBUTE
  463.  
  464.     The following tools use the current paint attribute:
  465.  
  466.         0  Paint tool
  467.  
  468.         0  Mark Block tool
  469.  
  470.  
  471.     To change the current attribute:
  472.  
  473.     1.  Select a painting tool. (Use the shortcut keys described above.)
  474.  
  475.     2.  Choose the Paint attr command from the Workspace menu (ALT+W, P).
  476.     The shortcut for this command is + (on the numeric keypad).
  477.  
  478.     The Set Paint Attribute dialog box appears, displaying a palette of
  479.     colors. This dialog box lets you pick an attribute from a list of all
  480.     possible combinations. Each column contains a different background
  481.     color, and each row shows a different foreground color.
  482.  
  483.  ┌───────────────────────────────────────────────────────────────────────┐
  484.  │                                                                       │
  485.  │ **** The Printed Documentation has a picture or screen shot here **** │
  486.  │                                                                       │
  487.  └───────────────────────────────────────────────────────────────────────┘
  488.     
  489.  
  490.     3.  To select an attribute:
  491.  
  492.     With the keyboard: Use the arrow keys to move the double box until it
  493.     surrounds your choice and press ENTER.
  494.  
  495.     With the mouse:  Place the mouse cursor on your choice and click the
  496.     left mouse button.
  497.  
  498.  
  499.  
  500.     ________________________________________________________________________
  501.                                          Chapter 13: Painting Tools   225
  502.     ________________________________________________________________________
  503.  
  504.  
  505.     Once you select a paint attribute, it appears next to the Paint attr
  506.     command on the Workspace menu. Your selection remains the current paint
  507.     attribute until you select another.
  508.  
  509.  
  510.     CHANGING COLORS USING ACCELERATORS
  511.  
  512.     When you begin modifying and creating pads, you may find yourself
  513.     constantly switching between a number of paint attributes. HyperPAD
  514.     makes it easy! You can assign accelerator keys to up to 10 different
  515.     paint attributes. Then, once you've selected a painting tool, you can
  516.     quickly switch between colors without accessing the dialog box.
  517.  
  518.  
  519.     To assign accelerator keys to paint attributes:
  520.  
  521.     1.  Select a painting tool.
  522.  
  523.     2.  Choose the Paint attr command from the Workspace menu.
  524.  
  525.     The Set Paint Attribute dialog box appears on-screen.
  526.  
  527.     3.  Use the arrow keys to select an attribute.
  528.  
  529.     4.  Hold down ALT and press the number (0 through 9) to be used as the
  530.     accelerator key.
  531.  
  532.     A list of the available accelerator keys (ALT+1, ALT+2 . . . ALT+0)
  533.     appears in a column to the right of the palette in the Set Paint
  534.     Attribute dialog box. As you assign attributes, the attribute appears
  535.     next to the corresponding accelerator key.
  536.  
  537.     5.  Repeat steps 3 and 4 to make additional assignments.
  538.  
  539.     When you assign accelerator keys to paint attributes, they remain active
  540.     (even after you exit HyperPAD) until you select other paint attributes
  541.     to take their place.
  542.  
  543.  
  544.     USING THE PAINT ATTRIBUTE ACCELERATOR KEYS
  545.  
  546.     After you've assigned accelerator keys to the attributes you use most
  547.     often, you can select them using the ALT key:
  548.  
  549.     1.  Select a painting tool.
  550.  
  551.     2.  Hold down ALT and press the number corresponding to the attribute
  552.     you want (0 through 9).
  553.  
  554.     The paint attribute you assigned to that accelerator key becomes the
  555.     current paint attribute and appears next to the Paint attr command on
  556.     the Workspace menu.
  557.  
  558.  
  559.  
  560.     ________________________________________________________________________
  561.                                          Chapter 13: Painting Tools   226
  562.     ________________________________________________________________________
  563.  
  564.  
  565.     PICKING UP AN ATTRIBUTE
  566.  
  567.     If the attribute that you want to paint with is already on the screen,
  568.     you don't have to pick the attribute over again. HyperPAD provides a way
  569.     that you can "pick up" the attribute off the screen, making it the
  570.     current attribute.
  571.  
  572.  
  573.     To "pick up" an attribute off the screen:
  574.  
  575.     1.  Move the cursor to the character cell with the attribute you want to
  576.     use.
  577.  
  578.     2.  Press CTRL+ - (on the numeric keypad).
  579.  
  580.  
  581.     UNDO
  582.  
  583.     The Undo command, on the Edit menu, allows you to recover the screen
  584.     before the most recent painting change. After you've selected Undo, you
  585.     can reselect it to recover the screen before you originally selected
  586.     Undo--in effect, undoing the Undo.
  587.  
  588.  
  589.     THE PAINTING TOOLS
  590.  
  591.     The painting tools allow you to add attributes to the pages and
  592.     backgrounds in your pads. Use the painting tools to draw page layouts
  593.     and lay out your screen, including such components as the border, the
  594.     background color, the title bar, the message line, and any other
  595.     information that will make the page more intuitive.
  596.  
  597.     Each of the painting tools is used the same way, following the
  598.     procedures described in the previous subsection, "Applying a Painting
  599.     Tool."
  600.  
  601.  
  602.     THE PAINT TOOL
  603.  
  604.     The Paint tool allows you to add attributes to the pages and backgrounds
  605.     in your pads. This tool paints using the current attribute, which
  606.     appears next to the Paint attr command on the Workspace menu.
  607.  
  608.  
  609.  
  610.     ________________________________________________________________________
  611.                                          Chapter 13: Painting Tools   227
  612.     ________________________________________________________________________
  613.  
  614.  
  615.     THE TEXT TOOL
  616.  
  617.     The Text tool allows you to type text directly on the pages or
  618.     backgrounds in your pads. You can actually type text on the screen while
  619.     using any of the painting tools. The following keys can be used while
  620.     typing text.
  621.  
  622.     Key:             Function:
  623.     ----------------------------------------------------------------
  624.     DEL              Deletes the character under the cursor.
  625.  
  626.     BACKSPACE        Deletes the character to the left.
  627.  
  628.     CTRL+DEL         Deletes all characters to the end of the line.
  629.  
  630.     TAB              Moves the cursor to the next tab stop.
  631.  
  632.     CTRL+D, CTRL+Y   Deletes the line with the cursor.
  633.  
  634.     INS              Toggles Insert mode.
  635.  
  636.     ENTER            Moves the cursor to the beginning of the next line.
  637.  
  638.  
  639.     ENTERING SPECIAL CHARACTERS
  640.  
  641.     While you're designing the pages and backgrounds for your pads, you may
  642.     find it necessary to insert characters that you can't type on the
  643.     keyboard. You can place any ASCII character on the screen, including
  644.     line-drawing characters and international characters. You can select
  645.     from 255 characters using the Set Paint Character dialog box.
  646.  
  647.  
  648.  
  649.     ________________________________________________________________________
  650.                                          Chapter 13: Painting Tools   228
  651.     ________________________________________________________________________
  652.  
  653.  
  654.     To choose an ASCII character:
  655.  
  656.     1.  While the Text tool is active, position the cursor where you want
  657.     the character to be inserted.
  658.  
  659.     2.  Press the PLUS key on the numeric keypad.
  660.  
  661.     The Set Paint Character dialog box appears on-screen:
  662.  
  663.  ┌───────────────────────────────────────────────────────────────────────┐
  664.  │                                                                       │
  665.  │ **** The Printed Documentation has a picture or screen shot here **** │
  666.  │                                                                       │
  667.  └───────────────────────────────────────────────────────────────────────┘
  668.     
  669.  
  670.     3.  To insert a specific character:
  671.  
  672.     With the keyboard:  Use the arrow keys to highlight the character you
  673.     want to select, then press ENTER.
  674.  
  675.     With the mouse:  Place the pointer over the ASCII character you want to
  676.     select and click the left mouse button.
  677.  
  678.     The ASCII character you selected will be inserted at the cursor
  679.     location.
  680.  
  681.  
  682.     INSERT MODE
  683.  
  684.     The Text tool behaves differently depending on the Insert mode
  685.     (accessible from the Workspace Options dialog box). If Insert mode is
  686.     set, then the characters you type will replace those already on the
  687.     screen.
  688.  
  689.     If Insert mode is not set, then the characters you type will push the
  690.     other characters on the line off the end of the line.
  691.  
  692.  
  693.  
  694.     ________________________________________________________________________
  695.                                          Chapter 13: Painting Tools   229
  696.     ________________________________________________________________________
  697.  
  698.  
  699.     USING EXTENDED ASCII CHARACTERS AS THE END OF LINE
  700.  
  701.     As you type text when Insert mode is not set, characters to the right on
  702.     the same line are pushed right up to the end of the line. The end of the
  703.     line is determined by setting an option in the Workspace Options dialog
  704.     box (called "Use extended ASCII characters as end of line"). If this
  705.     option is not set, the characters are pushed off the right edge of the
  706.     screen and cannot be recovered.
  707.  
  708.     If this option is set, the end of the line is determined by the first
  709.     character that is not a letter, punctuation mark, space, or digit. This
  710.     option is especially useful for typing text inside a painted box.
  711.  
  712.  
  713.     THE ERASE TOOL
  714.  
  715.     The Erase tool can be used to clean up any mistakes you may have made.
  716.     It erases both the character and attribute portions of the character
  717.     cell, replacing them with the transparent character (character 0) and
  718.     the transparent attribute (7). Thus, when you use the Erase tool on the
  719.     page, characters and attributes from the background will show through.
  720.  
  721.     When you use the Erase tool, only the paint and characters on the
  722.     current page or background will be deleted.
  723.  
  724.  
  725.     THE LINE TOOL
  726.  
  727.     The Line tool allows you to add single and double lines to the pages and
  728.     backgrounds in your pads. Using the Line tool, you can create boxes,
  729.     charts, and borders easily without having to worry about line
  730.     intersections.
  731.  
  732.  
  733.     LINE TYPE
  734.  
  735.     As noted above, you can use the Line tool to draw both single and double
  736.     lines. To toggle the line type, select the Line Type command from the
  737.     Workspace menu (ALT+W, L). A sample of the current line type appears
  738.     next to the Line Type command in the menu. With the keyboard, you can
  739.     quickly change the line type using the following keys:
  740.  
  741.     Key:          Line Type:
  742.     ------------------------------------------
  743.     CTRL+=        Double
  744.  
  745.     CTRL+-        Single
  746.  
  747.  
  748.  
  749.     ________________________________________________________________________
  750.                                          Chapter 13: Painting Tools   230
  751.     ________________________________________________________________________
  752.  
  753.  
  754.     THE MARK BLOCK TOOL
  755.  
  756.     The Mark Block tool is used to perform a painting operation on a
  757.     rectangular area of the screen. This helps speed the painting process by
  758.     relieving you of the tedious job of painting large areas of the screen
  759.     using the other painting tools.
  760.  
  761.     The Mark Block tool makes creating boxes easy. First, you select an area
  762.     of the screen where you want to place the box, press P to paint it, then
  763.     press B to draw a box in it. There are many painting operations that can
  764.     be performed on marked blocks.
  765.  
  766.     When this tool is enabled, the commands on the Block menu are carried
  767.     out on the entire block.
  768.  
  769.     You can also copy and paste blocks on the same screen or different
  770.     screens. This allows you to grab screen designs from other pads, like
  771.     the Ideas pad that comes with HyperPAD, and use them in your own screen
  772.     layouts.
  773.  
  774.  
  775.     To use the Mark Block tool:
  776.  
  777.     1.  Select Mark Block from the Tools menu (CTRL+M).
  778.  
  779.     2.  To mark an area:
  780.  
  781.     With the keyboard:  Move the cursor to the upper left corner of the area
  782.     you want to select. While holding down a SHIFT key, press the arrow
  783.     keys, dragging the outline until the area you want to select is within
  784.     the outline's boundaries.
  785.  
  786.     With the mouse:  Move the cursor to the upper left corner of the area
  787.     you want to select. Press the left mouse button and drag the mouse until
  788.     the outline surrounds the area you want to select.
  789.  
  790.     Once a block is marked, you can perform the functions described in the
  791.     following subsections. If you want to cancel the marking, just press
  792.     SPACE or click the mouse outside the boundaries of the block.
  793.  
  794.  
  795.  
  796.     ________________________________________________________________________
  797.                                          Chapter 13: Painting Tools   231
  798.     ________________________________________________________________________
  799.  
  800.  
  801.     The block commands are summarized in the following table:
  802.  
  803.  
  804.     To:                                      Press:
  805.     ----------------------------------------------------------------------
  806.     Copy the block                           CTRL+C or CTRL+INSERT
  807.  
  808.     Cut the block                            CTRL+X or SHIFT+DEL
  809.  
  810.     Delete the block                         DEL or E
  811.  
  812.     Draw a box within the block              B
  813.  
  814.     Paint the block with the current         P
  815.     attribute
  816.  
  817.     Clear the block                          C
  818.  
  819.     Opaque the block                         O
  820.  
  821.     Fill the block with current ASCII char   F
  822.  
  823.     Shrink the block to enclose material     T
  824.  
  825.     Make a button and link it to the page    M
  826.  
  827.  
  828.     UDOING A BLOCK COMMAND
  829.  
  830.     If you make any mistakes manipulating a block, press CTRL+U to undo your
  831.     changes. This is especially handy when you experiment with different
  832.     block commands, finding the best color or position for the block. For
  833.     example, you might mark a block, paint it, draw a box inside it, and
  834.     then change your mind and press CTRL+U to undo it.
  835.  
  836.     When you select Undo, the block is returned to its original position,
  837.     size, and content. The block will remain outlined so that you can
  838.     continue editing the same block.
  839.  
  840.  
  841.     MOVING A BLOCK
  842.  
  843.     Use the arrow keys (and CTRL+arrow keys for faster movement) to move the
  844.     block anywhere on the screen.
  845.  
  846.     If you're using a mouse, just place the mouse pointer within the outline
  847.     of the block, press the left mouse button, and drag the block to the new
  848.     location. If you hold down SHIFT while moving the block with the mouse,
  849.     HyperPAD leaves copies of the block all over the screen. This is useful
  850.     for painting patterns on a large area of the screen.
  851.  
  852.  
  853.  
  854.     ________________________________________________________________________
  855.                                          Chapter 13: Painting Tools   232
  856.     ________________________________________________________________________
  857.     You can leave a copy of the block on the screen at the current position
  858.     by pressing ENTER.
  859.  
  860.  
  861.  
  862.     ________________________________________________________________________
  863.                                          Chapter 13: Painting Tools   233
  864.     ________________________________________________________________________
  865.  
  866.  
  867.     COPYING AND CUTTING A BLOCK
  868.  
  869.     You can cut and copy blocks to the clipboard, replacing what is
  870.     currently in the clipboard, using the Copy Block and Cut Block commands.
  871.  
  872.     To copy a block using the mouse, hold down CTRL, then click the left
  873.     mouse button within the block and drag the copy to a new location.
  874.  
  875.  
  876.     ERASING A BLOCK
  877.  
  878.     This command erases all of the characters and attributes within the
  879.     block, replacing them with the transparent character and the transparent
  880.     attribute.
  881.  
  882.     If you erase the block accidentally, you can recover it using the Undo
  883.     command.
  884.  
  885.  
  886.     DRAWING A BOX WITHIN A BLOCK
  887.  
  888.     The Box Block command creates a border around the block using the
  889.     current box style. The border is drawn within the confines of the
  890.     outline that defines the block.
  891.  
  892.  
  893.     To draw a box within the marked block:
  894.  
  895.     1.  Mark a block.
  896.  
  897.     2.  Press B to draw the box.
  898.  
  899.     To change the type of border, select the Box Style command from the
  900.     Block menu. The dialog box that appears gives you 15 common border types
  901.     from which to choose. With the keyboard, use the arrow keys to select a
  902.     new border, then press ENTER. With the mouse, just click on the border
  903.     you want.
  904.  
  905.  
  906.     PAINTING BLOCK
  907.  
  908.     If you want to paint a large area with the current attribute, use the
  909.     Paint Block command. This command changes all of the attributes within
  910.     the borders of the block to the current paint attribute.
  911.  
  912.     If you want to change the color, press MINUS on the numeric keypad. This
  913.     changes the current attribute, leaving the outline unchanged so that you
  914.     can immediately paint the block again, by pressing P.
  915.  
  916.  
  917.  
  918.     ________________________________________________________________________
  919.                                          Chapter 13: Painting Tools   234
  920.     ________________________________________________________________________
  921.  
  922.  
  923.     OPAQUING A BLOCK
  924.  
  925.     Oftentimes, a marked block contains transparent space. If the block is
  926.     moved to a new location, the characters and attributes behind the marked
  927.     block show through, making the information seem garbled. You can remedy
  928.     this situation using the Opaque Block command.
  929.  
  930.     The Opaque Block command makes the block opaque, translating all
  931.     transparent characters to spaces.
  932.  
  933.  
  934.     CLEARING A BLOCK
  935.  
  936.     Sometimes when you move a marked block, you may want the characters and
  937.     attributes behind the block to show through the empty spaces. In this
  938.     case, use the Clear Block command.
  939.  
  940.     The Clear Block command makes all empty space in a block transparent by
  941.     replacing the spaces with the transparent character (0).
  942.  
  943.  
  944.     FILLING A BLOCK
  945.  
  946.     Use the Fill Block command to fill the block with the current ASCII
  947.     character.
  948.  
  949.     You can change the current ASCII character by pressing PLUS on the
  950.     numeric keypad and selecting a new character. Since the block remains
  951.     marked, you can immediately fill it again by pressing F.
  952.  
  953.  
  954.     TRIMMING A BLOCK
  955.  
  956.     The Trim Block command allows you to shrink the block's boundaries so
  957.     that they enclose only the nontransparent data. HyperPAD computes the
  958.     minimum-size rectangle needed to enclose the nontransparent data and
  959.     reselects the block for you.
  960.  
  961.     This command is useful if you were sloppy marking your block and you
  962.     accidentally enclosed some extra blank space. You could use the Trim
  963.     Block command to enclose only the data you initially intended.
  964.  
  965.  
  966.     MAKING A BUTTON
  967.  
  968.     The Make Button command is used to create a transparent HyperPAD button
  969.     the same size as the marked area, then link the button to another page.
  970.  
  971.     This command is useful in designing hypertext systems, which present
  972.     screens of information. Each screen contains links that go to other
  973.     screens containing related information. This type of system lets the
  974.     user browse through your data in an intuitive manner, selectively
  975.  
  976.  
  977.  
  978.     ________________________________________________________________________
  979.                                          Chapter 13: Painting Tools   235
  980.     ________________________________________________________________________
  981.  
  982.  
  983.     clicking on information of interest. In HyperPAD, a quick way to create
  984.     these links is to use the Make Button command.
  985.  
  986.  
  987.     To create a button from a marked block:
  988.  
  989.     1.  Mark a block.
  990.  
  991.     2.  Choose the Make Button command from the Block menu (ALT+B, M). The
  992.     shortcut for this command is M.
  993.  
  994.     When you select Make Button, HyperPAD presents you with a dialog box
  995.     telling you to navigate to the destination page and select one of the
  996.     choices. The destination page is the page that you want the button to be
  997.     linked to when it's selected.
  998.  
  999.     3.  Navigate to the destination page and select one of the following:
  1000.  
  1001.     Press:      To:
  1002.     -------------------------------------------------------------
  1003.     ALT+P       Select the current page as the destination.
  1004.  
  1005.     ALT+A       Select the current pad as the destination.
  1006.  
  1007.     ALT+C       Cancel the command and return to the original page.
  1008.  
  1009.  
  1010.     THE CHAR PAINT TOOL
  1011.  
  1012.     The Char Paint tool allows you to paint with the current ASCII
  1013.     character. Before you begin painting, you need to select a specific
  1014.     character to paint with.
  1015.  
  1016.  
  1017.     To choose an ASCII character:
  1018.  
  1019.     1.  Select the ASCII char command from the Workspace menu (ALT+W, A).
  1020.     The shortcut for this command is PLUS on the numeric keypad.
  1021.  
  1022.     The Set Paint Character dialog box appears on-screen.
  1023.  
  1024.     2.  To select an ASCII character:
  1025.  
  1026.     With the keyboard:  Use the arrow keys to highlight the character you
  1027.     want to select and press ENTER.
  1028.  
  1029.     With the mouse:  Click the mouse on the ASCII character you want to
  1030.     select.
  1031.  
  1032.     The ASCII character you selected will appear next to the ASCII char
  1033.     command on the Workspace menu.
  1034.  
  1035.  
  1036.  
  1037.     ________________________________________________________________________
  1038.                                          Chapter 13: Painting Tools   236
  1039.     ________________________________________________________________________
  1040.  
  1041.  
  1042.     CHARACTER PAINTING THE EASY WAY
  1043.  
  1044.     If you need to constantly switch back and forth between various ASCII
  1045.     characters, you may find it tedious to use the ASCII character dialog
  1046.     box. You can speed up selection of ASCII characters by assigning
  1047.     accelerator keys to the characters you use most (up to 10 accelerator
  1048.     keys can be assigned). These keys allow you to switch between ASCII
  1049.     characters without using the dialog box.
  1050.  
  1051.  
  1052.     To assign accelerator keys to ASCII characters:
  1053.  
  1054.     1.  Choose the Char Paint tool from the Tools menu (ALT+T, H). The
  1055.     shortcut is CTRL+H.
  1056.  
  1057.     2.  Choose the ASCII Char command from the Workspace menu (ALT+W, A).
  1058.     The shortcut is the PLUS key on the numeric keypad.
  1059.  
  1060.     3.  When the Set Paint Character dialog box appears, use the arrow keys
  1061.     to highlight one of the characters to which you want to assign an
  1062.     accelerator key.
  1063.  
  1064.     4.  Hold down CTRL and press the number (0 through 9) that you want as
  1065.     the character's accelerator key.
  1066.  
  1067.     A list of the available accelerator keys (CTRL+1, CTRL+2, CTRL+3,. .
  1068.     .CTRL+0) appears in a column to the right of the character list. As you
  1069.     assign accelerator keys, each character selection is placed next to the
  1070.     corresponding accelerator key.
  1071.  
  1072.     5.  Repeat steps 3 and 4 to make additional assignments.
  1073.  
  1074.     Accelerator keys remain operational until you replace them with other
  1075.     characters (even if you leave HyperPAD).
  1076.  
  1077.  
  1078.     To use the accelerator keys:
  1079.  
  1080.     1.  Select the Char Paint tool from the Tools menu (ALT+T, H). The
  1081.     shortcut is CTRL+H.
  1082.  
  1083.     2.  Hold down CTRL and press the accelerator key (0 through 9)
  1084.     corresponding to the character you want.
  1085.  
  1086.     The character assigned to that accelerator key will be inserted into the
  1087.     text and will become the current ASCII character.
  1088.  
  1089.  
  1090.  
  1091.     ________________________________________________________________________
  1092.                                          Chapter 13: Painting Tools   237
  1093.     ________________________________________________________________________
  1094.  
  1095.  
  1096.     THE SELECTOR TOOL
  1097.  
  1098.     The Selector tool allows you to modify the buttons and fields present on
  1099.     backgrounds and pages. This tool is discussed in depth in Chapter 14,
  1100.     "Manipulating Buttons and Fields."
  1101.  
  1102.  
  1103.     PAINTING TOOL OPTIONS
  1104.  
  1105.     HyperPAD offers many customization options that change the way the
  1106.     painting tools are used, including the way attributes are placed on the
  1107.     screen, automatic indenting when the ENTER key is pressed, and Insert
  1108.     mode. Each option is accessible using the Options command on the
  1109.     Workspace menu (ALT+W, O).
  1110.  
  1111.  ┌───────────────────────────────────────────────────────────────────────┐
  1112.  │                                                                       │
  1113.  │ **** The Printed Documentation has a picture or screen shot here **** │
  1114.  │                                                                       │
  1115.  └───────────────────────────────────────────────────────────────────────┘
  1116.     
  1117.  
  1118.     Each option with an X between the brackets is active.
  1119.  
  1120.     The following subsections describe each of the available options.
  1121.  
  1122.  
  1123.     USE PAINTING TOOLS WITH CURRENT ATTRIBUTE
  1124.  
  1125.     This option causes the current paint attribute to be used with every
  1126.     painting tool. When you type text or draw lines, the characters are
  1127.     placed on the screen using the current attribute.
  1128.  
  1129.  
  1130.  
  1131.     ________________________________________________________________________
  1132.                                          Chapter 13: Painting Tools   238
  1133.     ________________________________________________________________________
  1134.  
  1135.  
  1136.     AUTOMATIC INDENTING
  1137.  
  1138.     Automatic indenting only works with the Text tool. When this option is
  1139.     selected, and the ENTER key is pressed while entering text, the cursor
  1140.     moves directly under the leftmost (nonspace) character on the previous
  1141.     line. This is helpful when you want to line up text or type into boxes.
  1142.  
  1143.     Note:  This capability is available only if you turn on the option
  1144.     called  Use extended ASCII characters as end of line.
  1145.  
  1146.  
  1147.     USE EXTENDED ASCII CHARACTERS AS END OF LINE
  1148.  
  1149.     Extended ASCII characters are nonletter, nondigit, nonpunctuation
  1150.     characters that you can't normally type with the keyboard. Selecting
  1151.     this option causes extended characters to act as the right margin of a
  1152.     typing area when you're using the Text tool.
  1153.  
  1154.     Note:  In order for this option to have any effect, the Insert mode
  1155.     (push characters right) option must also be selected.
  1156.  
  1157.  
  1158.     AUTOMATIC TOOL SWITCHING
  1159.  
  1160.     This option allows mouse users to quickly change between the Selector
  1161.     tool (which is used to manipulate buttons and fields) and a painting
  1162.     tool. When this option is on and you select a button or field with the
  1163.     mouse, the Selector tool is automatically activated. And when you click
  1164.     the mouse button outside of any buttons or fields, the painting tool you
  1165.     were last working with is activated.
  1166.  
  1167.     This option is useful if you constantly switch between the Selector and
  1168.     a painting tool.
  1169.  
  1170.  
  1171.     INSERT MODE (PUSH CHARACTERS RIGHT)
  1172.  
  1173.     When this option is on, the text that you type on the screen pushes the
  1174.     remaining characters on that line to the right. When this option is not
  1175.     on (overtype mode), the characters that you type replace those on the
  1176.     line.
  1177.  
  1178.     To toggle Insert mode on and off without accessing a menu, simply press
  1179.     the INS key.
  1180.  
  1181.  
  1182.  
  1183.     ________________________________________________________________________
  1184.                                          Chapter 13: Painting Tools   239
  1185.     ________________________________________________________________________
  1186.  
  1187.  
  1188.     PUSH CHARACTERS OFF EDGE OF PAGE
  1189.  
  1190.     If you select this option, text will be pushed off the end of the line
  1191.     (if Insert mode is also selected). For example, if there is a character
  1192.     in column 80 on the line on which you are typing, HyperPAD will push the
  1193.     character off the edge of the screen.
  1194.  
  1195.     If this option is not selected, HyperPAD will beep instead of losing the
  1196.     characters off the end of the line. Use this option if you're afraid of
  1197.     losing characters off the end of your lines.
  1198.  
  1199.     This option has no effect if Insert mode is not selected (because
  1200.     characters aren't being pushed right).
  1201.  
  1202.  
  1203.     PAINTING TRICKS
  1204.  
  1205.     The following subsections describe techniques that will make painting
  1206.     easier. Among the tricks are ways to view the page separated from its
  1207.     background, view nontransparent elements on a page or background, and
  1208.     delete and insert lines.
  1209.  
  1210.  
  1211.     DISPLAYING ALL ATTRIBUTES
  1212.  
  1213.     If you want to know what attribute is assigned to each cell on the page
  1214.     or background, you can do so quickly.
  1215.  
  1216.     When a character cell contains a space or the transparent character, it
  1217.     is impossible to determine the foreground color, because the cell
  1218.     appears as a block using the background color. This trick lets you
  1219.     temporarily view the screen filled with characters so that you can
  1220.     determine the foreground/background color combination being used in the
  1221.     character cells.
  1222.  
  1223.  
  1224.     To see all of the attributes on the screen:
  1225.  
  1226.     1.  Select a painting tool.
  1227.  
  1228.     2.  Press CTRL+A.
  1229.  
  1230.     HyperPAD temporarily fills the screen with block characters in each
  1231.     character cell. This allows you to examine the attributes assigned to
  1232.     the cells.
  1233.  
  1234.     3.  Press ESC to return to what you were just viewing.
  1235.  
  1236.  
  1237.  
  1238.     ________________________________________________________________________
  1239.                                          Chapter 13: Painting Tools   240
  1240.     ________________________________________________________________________
  1241.  
  1242.  
  1243.     VIEWING ONLY THE PAGE
  1244.  
  1245.     As your pads become more complex, you may find it difficult to keep
  1246.     track of what elements are on the background and page layers. Instead of
  1247.     selecting the Background command from the Edit menu (ALT+E, B), you can
  1248.     quickly view only the page elements by holding down both SHIFT keys. As
  1249.     soon as you release the keys, HyperPAD will return to viewing both the
  1250.     current page and its background.
  1251.  
  1252.  
  1253.     HIGHLIGHTING OPAQUE
  1254.  
  1255.     By holding down ALT+SHIFT, you can see all the elements on the page or
  1256.     background that are not transparent. This technique is used to identify
  1257.     which paint elements on the page will hide background elements and spot
  1258.     the holes through which background elements will be seen.
  1259.  
  1260.  
  1261.     INSERTING A ROW
  1262.  
  1263.     The two key combinations presented below are used to insert a new line
  1264.     on the paint layer.
  1265.  
  1266.  
  1267.     To insert a line:
  1268.  
  1269.     1.  Position the cursor on the line before which you want to insert a
  1270.     new line.
  1271.  
  1272.     2.  Press one of the following key combinations:
  1273.  
  1274.     CTRL+I:  Inserts a line above the cursor's position. The cells in this
  1275.     line will contain the transparent character and attribute.
  1276.  
  1277.     CTRL+SHIFT+I:  Inserts a line above the cursor's position.
  1278.  
  1279.  
  1280.     DELETING A ROW
  1281.  
  1282.     You can delete a line anywhere on the screen, creating a blank line on
  1283.     the bottom of the screen.
  1284.  
  1285.  
  1286.     To delete a line on the page or background:
  1287.  
  1288.     1.  Position the cursor on the line to be deleted.
  1289.  
  1290.     2.  Press CTRL+D or CTRL+Y.
  1291.  
  1292.  
  1293.  
  1294.     ________________________________________________________________________
  1295.                                          Chapter 13: Painting Tools   241
  1296.     ________________________________________________________________________
  1297.  
  1298.  
  1299.     OTHER PAINTING TIPS
  1300.  
  1301.         0  To paint faster with the keyboard, hold down CTRL+SHIFT while
  1302.            painting with the arrow keys.
  1303.  
  1304.         0  To paint straight lines of ASCII characters, place the mouse
  1305.            pointer where you want to begin painting, then hold down both the
  1306.            SHIFT key and the left mouse button while dragging the mouse.
  1307.  
  1308.         0  When the tool box is displayed, you can quickly access the Set
  1309.            Paint Attribute dialog box by placing the mouse cursor on the
  1310.            Tool Box's Char Paint command and double-clicking the left mouse
  1311.            button.
  1312.  
  1313.  
  1314.     CONCLUSION
  1315.  
  1316.     In this chapter, you learned how to use HyperPAD's painting tools to
  1317.     create attractive screen layouts for your pads. The first section
  1318.     described the painting environment, including how the screen is divided
  1319.     up into character cells. You learned all about the painting tools, which
  1320.     allow you to manipulate the characters and attributes that make up these
  1321.     cells.
  1322.  
  1323.     At the end of the chapter, you learned how to control your painting
  1324.     environment using the Workspace Options and picked up some productivity
  1325.     tips that can help make the on-screen information more easily
  1326.     understandable.
  1327.