home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / p / pep13a.zip / CHAPT4.TXT < prev    next >
Text File  |  1992-12-17  |  24KB  |  464 lines

  1. <Chapter 4:  Modifying Elements>
  2.      Use the MODIFY command to change the properties of any element in the
  3. open object. First press the command letter, and then select an element to
  4. modify as follows. Position the cross-hair cursor near the element you
  5. want to modify and press RETURN. PEP finds the picture element nearest to
  6. the cursor and displays a box around that element. (The selected element
  7. is also displayed in the preview window if you have one.) You can accept
  8. this choice or reject it. Press RETURN to accept, or SPACE to reject. If
  9. you accept the choice, a new menu appears. The commands in this menu
  10. depend on the kind of element you have chosen. You can use this menu to
  11. change the properties of the selected element. If, however, you press
  12. SPACE to reject the boxed element, the next closest element is selected,
  13. and a box is displayed around it. Once again, you can press either RETURN
  14. to accept the boxed element or SPACE to select another. By repeatedly
  15. pressing SPACE, you can step through every element in the picture, if
  16. necessary, to select the one you wish to modify. This method of selection
  17. is exactly the same as the one used by the DELETE command <[3]>.
  18.  
  19.      While you are modifying an element a record is kept of the
  20. modifications performed so that these changes can be reversed by the UN-DO
  21. command. This record is similar to the un-delete queue and is called the
  22. un-do queue. See the description of the UN-DO command below <[4.24]>.
  23.  
  24.      While the selected element is being modified, it is temporarily moved
  25. to the front of the open object display. Unless the ORDER command is used
  26. (see <[4.19]> below), the element is returned to its original position in
  27. the drawing sequence when it is no longer being modified.
  28.  
  29.      After you select an element, a menu of modify commands appears. The
  30. four types of element (line, label, object, and group) each bring up a
  31. different menu, consisting of a subset of the commands listed below. In
  32. addition to the MODIFY command, there are two other ways to access these
  33. modify menus. The INSERT/MODIFY command <[2.11]> allows you to modify the
  34. most recently inserted element, and the COLLECT/GROUP <[5.8]> and
  35. COLLECT/OBJECT <[5.7]> commands bring up a modify menu whenever they
  36. create a group or object.
  37.  
  38. <Section 4.1:  Move>
  39.      The MODIFY/MOVE command is available for all elements.
  40.  
  41.      Use this command to change the location of the selected element.
  42. Press the command letter to display a box cursor around the selected
  43. element. Position the box at the desired new location, and press RETURN to
  44. move the element. The box cursor is locked inside the window that contains
  45. it. If you wish to move an element from one window to another, you can
  46. replace the box cursor with a crosshair by pressing SPACE. The cross hair
  47. can be moved into any window. Pressing SPACE again converts back to a box
  48. cursor.
  49.  
  50.      You can also move the selected element by typing in new X and Y
  51. coordinates. For objects and groups, these coordinates locate the upper
  52. left corner of the element. For text strings, these coordinates locate the
  53. starting point of the label. The starting point of a label is the corner
  54. of the label box nearest to the top of the first character in the label.
  55. See <[FIG23]>.
  56.  
  57.      For lines, two pairs of XY coordinates can be entered. When you press
  58. the command letter, XY input is enabled for the first pair of coordinates.
  59. This pair identifies the position of the start point of the line. If you
  60. press the command letter a second time, XY input is enabled for the second
  61. pair of coordinates. This pair identifies the position of the end point of
  62. the line.
  63.  
  64. <Section 4.2:  Duplicate>
  65.      The MODIFY/DUPLICATE command is available for all elements.
  66.  
  67.      The DUPLICATE command makes a duplicate copy of the selected element.
  68. Press the command letter and a box cursor appears. Position this cursor at
  69. the target location, and press RETURN. A new copy of the selected element
  70. is created and inserted at the selected location. The menu window still
  71. displays a modify menu appropriate to this type of element, but you are
  72. now modifying the copy, not the original element. If you press SPACE,
  73. another copy is inserted at the same distance from the former copy as that
  74. copy was from the original. By using this feature, you can easily create
  75. multiple evenly spaced copies of any kind of element. To insert another
  76. copy at a different location, just re-position the cursor and press RETURN
  77. a second time.
  78.  
  79.      The DUPLICATE command empties the un-do queue. After you have made
  80. the duplicate element, previous changes to the original element can no
  81. longer be un-done.
  82.  
  83. <Section 4.3:  Align>
  84.      The MODIFY/ALIGN command is available for groups.
  85.  
  86.      You can align multiple elements by collecting them into a group and
  87. applying the ALIGN command. Elements can be aligned at their left edge,
  88. right edge, horizontal midpoint (called the CENTER in the ALIGN menu), top
  89. edge, bottom edge, or vertical midpoint (called the MIDDLE in the ALIGN
  90. menu). Press the command letter to display a menu of these six choices and
  91. select one to align the individual elements of the selected group. For
  92. example, if you choose LEFT alignment, the elements of the group are moved
  93. so that the left edge of each element lies on the left edge of the entire
  94. group. If you choose MIDDLE alignment, the elements are moved so that the
  95. vertical midpoint of each lies on the vertical midpoint of the group.
  96. <[FIG27]> shows the effect of each of these two operations.
  97.  
  98. <Section 4.4:  Edit>
  99.      The MODIFY/EDIT command is available for Labels.
  100.  
  101.      Use this command to add, delete, or replace the text in a selected
  102. label. While the label is open for editing, the text is displayed left
  103. justified. When the label is closed, the correct justification is
  104. restored.
  105.  
  106.      While you are editing a text label, a number of single keystroke
  107. commands become available, and the command menu is replaced by a list of
  108. these. See the description of the INSERT/TEXT command <[2.7]> for an
  109. explanation of these new keystrokes.
  110.  
  111. <Section 4.5:  Stretch>
  112.      The MODIFY/STRETCH command is available for Lines, Objects and
  113. Groups.
  114.  
  115.      Use this command to change the size of the selected element. Press
  116. the command letter to display a stretchable box cursor around the selected
  117. element. Use the arrow keys or the mouse to re-position the moveable
  118. corner of the cursor. Press SPACE or Grey-star to select a different
  119. moveable corner. Press RETURN to stretch the selected element to the size
  120. of the box cursor.
  121.  
  122.      For groups and objects, you can also type in explicit X and Y stretch
  123. factors. The size of the selected object is changed. Its new size is
  124. determined by the new stretch factors multiplied by the initial size of
  125. the group or the native size of the object.
  126.  
  127. <Section 4.6:  Rotation>
  128.      The MODIFY/ROTATION command is available for Labels, Groups and
  129. Objects.
  130.  
  131.      Use this command to rotate the selected element. Press the command
  132. letter to display a menu of the eight available choices: four rotations
  133. (0, 90, 180, and 270 degrees clockwise) and four mirror images (\, -, /,
  134. and |). <[FIG10]> shows the effect of each of these operations.
  135.  
  136. <Section 4.7:  Type>
  137.      The MODIFY/TYPE command is available for Objects.
  138.  
  139.      Use this command to replace the selected object with an object of a
  140. different type. The new object is inserted in the same position, and with
  141. the same stretch and rotation as the one it replaces. Type the command
  142. letter to display a name menu of all of the objects in the loaded picture
  143. file. Choose an object name from this menu, and the selected object is
  144. replaced by an object of the chosen type.
  145.  
  146. <Section 4.8:  Fill>
  147.      The MODIFY/FILL command is available for Groups. It is used to create
  148. filled regions. To make a filled region, first draw the boundary of the
  149. region, turning the boundary into a group by using the INSERT/GROUP
  150. <[2.9]> or COLLECT/GROUP <[5.8]> command. Then use MODIFY/FILL to turn the
  151. group into a filled region. In order for filling to operate properly, the
  152. boundary of the region must consist of one or more closed polylines. See
  153. the discussion in Chapter <[2]>, especially concerning the INSERT/CLOSE
  154. command <[2.6]>.
  155.  
  156.      The FILL command is a multiple choice command with two values: NO and
  157. YES. If FILL is NO, the selected group is a plain group; it is not a
  158. filled region; it is simply a collection of the elements that have been
  159. grouped together to create it. If FILL is YES, the selected group is a
  160. filled group; the elements collected in the group are interpreted as the
  161. boundary of a region that is to be given a solid or pattern fill. See
  162. <[FIG20]>.
  163.  
  164.      Note: if a group contains text labels, when it is converted into a
  165. filled region, the labels do not affect the area being filled. They are
  166. displayed, however, when the boundary is drawn and their color will be the
  167. border color for the region (see MODIFY/BORDER <[4.10]> below).
  168.  
  169. <Section 4.9:  Pattern>
  170.      This MODIFY/PATTERN command is available for Groups. It controls the
  171. pattern used to fill a filled region. Press the command letter to bring up
  172. a menu of available fill patterns. Choose one to change the fill pattern
  173. of the selected group. The set of available patterns is determined by the
  174. currently installed pattern file. This can be changed by using the
  175. SETUP/INSTALL/PATTERNS command. (See <[12.5.2]>).
  176.  
  177.      You can also change the pattern of several filled groups at one time
  178. by collecting them into a group and applying the PATTERN command to that
  179. group.
  180.  
  181.      Note: unless the selected group is itself a filled region or is a
  182. collection containing filled regions, the PATTERN command will have no
  183. visible effect on the group. The pattern data is not used except during
  184. the filling operation.
  185.  
  186. <Section 4.10:  Border>
  187.      The MODIFY/BORDER command is available for Groups. It controls the
  188. color in which the border of a filled region is drawn. (The COLOR command
  189. <[4.17]> controls the color of the fill). Press the command letter to
  190. display a menu with 17 choices, the 16 colors and NONE. If you choose a
  191. color, the border of the filled region will be drawn in that color. If you
  192. choose NONE, the filled region will be drawn without a border.
  193.  
  194.      You can also change the border color of several filled groups at one
  195. time by collecting them into a group and applying the BORDER command to
  196. that group.
  197.  
  198.      Note: unless the selected group is itself a filled region or is a
  199. collection containing filled regions, the BORDER command will have no
  200. visible effect on the group.
  201.  
  202. <Section 4.11:  Text>
  203.      The MODIFY/TEXT command is available for Groups.
  204.  
  205.      The modify commands that apply to text labels can also be applied to
  206. groups. These commands are: FONT, JUSTIFY, TYPESIZE, BOX, and WIDTH. For
  207. text labels, they appear in the MODIFY menu, but for groups, they appear
  208. in a submenu. Use the TEXT command to display this menu. Each of these
  209. commands is described separately below. When they are applied to a group,
  210. they affect all of the text labels within that group. (If the group
  211. contains no text, these commands will have no effect).
  212.  
  213.      For example, you can change the font of multiple text labels at one
  214. time by collecting them into a group and applying the MODIFY/TEXT/FONT
  215. command.
  216.  
  217. <Section 4.12:  Font>
  218.      The MODIFY/FONT command is available for Labels and Groups. For
  219. groups, it appears in the MODIFY/TEXT submenu.
  220.  
  221.      The FONT command changes the font of the selected label. For groups,
  222. it changes all of the text labels in the group to a single font. The
  223. command cycles through the font files installed in the SETUP/INSTALL menu
  224. <[12.5]>.
  225.  
  226. <Section 4.13:  Justify>
  227.      The MODIFY/JUSTIFY command is available for Labels and Groups. For
  228. groups, it appears in the MODIFY/TEXT submenu.
  229.  
  230.      The JUSTIFY command cycles through the four options for justifying
  231. text labels: LEFT, RIGHT, CENTERED, and EVEN. If the selected element is a
  232. text label, the command changes the justification of that label. If a
  233. group is selected, the command changes the justification of all labels in
  234. the group. The effect of the four kinds of justification is shown in
  235. <[FIG18]>.
  236.  
  237. <Section 4.14:  Typesize>
  238.      The MODIFY/TYPESIZE command is available for Labels and Groups. For
  239. groups, it appears in the MODIFY/TEXT submenu.
  240.  
  241.      With the TYPESIZE command, you can change the size of the characters
  242. in the selected text label. The width and height can be controlled
  243. independently. The point size of the label is given by the Y value, which
  244. determines the height of the characters. The X value determines the
  245. character widths. We recommend that the typesize X be equal to the
  246. typesize Y, if the font is BEAMOF or MEDFORD MODERN. For the other fonts,
  247. we recommend that the typesize X be approximately three fourths of the
  248. typesize Y.
  249.  
  250.      You can, however, set the X and Y typesize values in any ratio that
  251. you like. When you increase the X value, you make the label more expanded.
  252. When you decrease the X value, you make it more condensed. <[FIG22]>.
  253.  
  254. <Section 4.15:  Box>
  255.      The MODIFY/BOX command is available for Labels and Groups. For
  256. groups, it appears in the MODIFY/TEXT submenu.
  257.  
  258.      Every text label has a starting point (which can be modified by the
  259. MOVE command above) and an ending point. The text characters are
  260. positioned between these two according to the label's justification. The
  261. ending point is determined implicitly by the starting point plus a box
  262. width value associated with the label.
  263.  
  264.      The BOX command is a multiple choice command which determines how a
  265. box width is assigned to a text label. There are two modes: AUTO and
  266. FIXED. If the mode is AUTO, the box width of the label is determined by
  267. the contents of the label; it changes whenever the text is edited. If the
  268. mode is FIXED, you can set the box width to whatever value you want by
  269. using the MODIFY/WIDTH command described below.
  270.  
  271. <Section 4.16:  Width>
  272.      The MODIFY/WIDTH command is available for Labels and Groups. For
  273. groups, it appears in the MODIFY/TEXT submenu.
  274.  
  275.      Use this command to set the box width of a text label. However, note
  276. that setting the width value does not affect the label unless its box mode
  277. is FIXED. If the mode is AUTO, the width value is ignored. The box mode is
  278. controlled by the MODIFY/BOX command described above.
  279.  
  280.      To set the box width, first type the command letter. Then type in the
  281. label width, or use the cursor to determine the width as follows: position
  282. the cross-hair cursor and press RETURN. A small cursor marks the point
  283. that you have selected. The cross-hair cursor is also changed into a
  284. vertical line cursor. Position the new cursor and press RETURN again. The
  285. label width is set to the horizontal distance between the two points which
  286. you have chosen. Alternatively, when the vertical cursor appears, you can
  287. press SPACE to convert the vertical line to a horizontal line. Then when
  288. you press RETURN the second time, the label width is set to the vertical
  289. distance between the two chosen points.
  290.  
  291.      Note: there is no separate command to control the box height of a
  292. text label. The box height is always equal to the typesize Y value.
  293.  
  294. <Section 4.17:  Color>
  295.      The MODIFY/COLOR command is available for all elements.
  296.  
  297.      Use this command to change the color of the selected element. Picture
  298. elements can be in any one of 16 different colors. These colors are
  299. numbered 0 through 9 and A through F. Type the command letter, and then
  300. type the letter or number of the color you want.
  301.  
  302.      The display of most monochrome monitors for the PC and compatibles is
  303. white, green, or amber foreground on a black background. On EGA and VGA
  304. monitors, PEP may use either black or white as the background color. (The
  305. choice is an installation option). Most printers, however, print black on
  306. a white background. Therefore, the names BLACK and WHITE are not used in
  307. the color menus, and the substitutes FOREGROUND and BACKGROUND are used
  308. instead. On a dark background display, FOREGROUND color displays as white
  309. (or green or amber) and prints as black on paper. BACKGROUND color
  310. displays as black on screen, and prints as white on paper.
  311.  
  312.      The table below lists the standard names for each of the 16 colors.
  313. However, the actual color produced depends on the properties of your
  314. output device. If you have a monochrome display, all colors appear the
  315. same except color F (BACKGROUND).
  316.  
  317.   0  FOREGROUND  8  ORANGE
  318.   1  RED         9  LIME
  319.   2  BLUE        A  GRAY
  320.   3  YELLOW      B  PINK
  321.   4  GREEN       C  PURPLE
  322.   5  BROWN       D  GOLD
  323.   6  MAGENTA     E  OLIVE
  324.   7  CYAN        F  BACKGROUND
  325.  
  326. <Section 4.18:  Line-style>
  327.      The MODIFY/LINE-STYLE command is available for Lines, Groups and
  328. Objects.
  329.  
  330.      The style of a line can be changed in PEP in three ways. First, you
  331. can change the shape of the pen used to draw the line. Second, you can
  332. change the size of the pen. The size can be controlled independently in
  333. both the X direction and the Y direction. Finally, the line can be dashed.
  334. Dashing can be controlled by specifying for one dash its number of pixels
  335. on and number of pixels off. By combining these three techniques, an
  336. almost infinite variety of line styles can be produced.
  337.  
  338.      For groups and objects, setting the line style causes all lines in
  339. the group or object to be redrawn in the given style. This includes lines
  340. contained within sub-groups and sub-objects. Text, however, is not
  341. affected.
  342.  
  343.      Use the LINE-STYLE command to display a new menu, from which you can
  344. change the pen shape, pen size, and dashing parameters.
  345.  
  346. <Section 4.18.1:  Nibtype>
  347.      Use the MODIFY/LINE-STYLE/NIBTYPE command to change the shape of the
  348. nib, or pen point, used by PEP to draw the selected element. Type the
  349. command letter to display a menu of the eight available types: point,
  350. horizontal line, vertical line, up-sloping line, down-sloping line, box,
  351. ellipse, and rhombus. Choose one of these and the selected element is
  352. redrawn using the new pen shape.
  353.  
  354. <Section 4.18.2:  Pensize>
  355.      Use the MODIFY/LINE-STYLE/PENSIZE command to change the size of the
  356. pen point used to draw the selected element. It is an XY input command. X
  357. controls the pen width and Y controls the pen depth. Note, however, that
  358. three types of nib are unaffected by one or both of these settings. A
  359. horizontal pen is not affected by the Y setting, a vertical pen is not
  360. affected by the X setting, and a point pen is always one pixel by one
  361. pixel.
  362.  
  363. <Section 4.18.3:  Dashes>
  364.      The MODIFY/LINE-STYLE/DASHES command has two capabilities. You can
  365. use it as a multiple choice command to turn dashing ON and OFF. When
  366. dashing is ON, it is also an XY input command. X controls the length of
  367. the dashes, and Y controls the space between the dashes. If the pen size
  368. is larger than 0, the dashes can be made to overlap by using a small Y, or
  369. they can be kept apart by setting Y sufficiently large.
  370.  
  371. <Section 4.19:  Order>
  372.      The MODIFY/ORDER command is available for all elements.
  373.  
  374.      While an element is being modified, it is temporarily moved in front
  375. of all other elements in the open object. Normally, when you QUIT from the
  376. MODIFY menu, it is replaced in its original position in the drawing
  377. sequence. This can be changed by using the ORDER command. It is a multiple
  378. choice command with three values: SAME, 1ST, and LAST. If the order is
  379. SAME, the selected element will be replaced in its original position in
  380. the drawing sequence; this is the default value for ORDER. If the order is
  381. 1ST, the selected element will be moved to the back of the drawing
  382. sequence; it will be the first one drawn; other elements, if they overlap
  383. this one, will obscure it. If the order is LAST, the selected element will
  384. remain at the front of the drawing sequence; it will continue to be the
  385. last one drawn; other elements, if they overlap this one, will be obscured
  386. by it.
  387.  
  388.      Note that the effects of the ORDER command do not take place until
  389. you QUIT from the MODIFY menu.
  390.  
  391. <Section 4.20:  Globals>
  392.      The MODIFY/GLOBALS command is available for all elements.
  393.  
  394.      Use this command to set the appropriate parameters in the G-DEFAULTS
  395. <[10]> or T-DEFAULTS <[11]> menu to agree with the properties of the
  396. selected element. For example, if you want to insert a number of lines
  397. having the same line-style and color as a given line, select that line
  398. using the MODIFY command, and then use GLOBALS to update the graphic
  399. default settings. Every line inserted thereafter will have the properties
  400. of the line that you selected.
  401.  
  402. <Section 4.21:  Angles>
  403.      The MODIFY/ANGLES command is available for Arcs.
  404.  
  405.      Use the ANGLES command to change the curvature of an arc. Press the
  406. command letter and position the cursor within the box that appears. Press
  407. RETURN to select a point inside that box. The arc is redrawn with new
  408. slopes. The new slopes are determined by the chosen point. Namely, at each
  409. end point, the arc will be tangent to the straight line drawn from that
  410. end point to the point selected by the cursor. This is shown in <[FIG02]>.
  411. Repeat if necessary until the arc is drawn as you want it.
  412.  
  413.      In addition, you can use ANGLES as an XY input command and enter the
  414. start and end angles explicitly. In this case, use X input to specify the
  415. angle at the start of the line, and Y input to specify the angle at the
  416. end. Type in the angles in degrees from the horizontal. The minimum value
  417. is 0 (horizontal) and the maximum value is 90 (vertical).
  418.  
  419.      If you imagine a straight line from the start point of the arc to its
  420. end point, the entire arc must lie on one side or the other of this line.
  421. If you change one angle so as to violate this constraint, the opposite
  422. angle will be flipped automatically so that the arc will still be legal.
  423. If you want to draw a curve that begins on one side of this line and ends
  424. on the other, you can accomplish this by inserting two separate arcs.
  425.  
  426. <Section 4.22:  Flip>
  427.      The MODIFY/FLIP command is available for Right-angles and Arcs.
  428.  
  429.      Use this command to toggle between the two drawing directions
  430. (clockwise and counter-clockwise) of the selected right-angle or arc.
  431. <[FIG09]>.
  432.  
  433. <Section 4.23:  Explode>
  434.      The MODIFY/EXPLODE command is available for Groups and Objects.
  435.  
  436.      For groups, EXPLODE is an un-group command. It causes the group to be
  437. replaced by its separate elements. If a filled region is exploded, it is
  438. replaced by the individual elements of its boundary. Because the exploded
  439. group no longer exists as a single element, this command automatically
  440. exits from the MODIFY menu.
  441.  
  442.      For objects, EXPLODE causes the object to be replaced by a group of
  443. elements identical in appearance to the object being replaced. Then the
  444. MODIFY-OBJECT menu is replaced by a MODIFY-GROUP menu. For example, to
  445. make a filled region out of an object, first EXPLODE the object, then, in
  446. the MODIFY-GROUP menu, use the FILL command <[4.8]> to make the group into
  447. a filled region.
  448.  
  449.      To explode an object into its separate elements, press the command
  450. letter twice, once to convert from object into group, and again to explode
  451. the group into its individual components.
  452.  
  453. <Section 4.24:  Un-do>
  454.      The MODIFY/UN-DO command is available for all elements.
  455.  
  456.      This command reverses (or "un-does") the most recent modification of
  457. the selected element. As for the UN-DELETE command described in Chapter
  458. <[3]>, if you press the command letter a second time, the next most recent
  459. modification will be undone. If you continue to execute the command, more
  460. changes will be reversed. The number of changes remembered is limited only
  461. by the amount of available memory. However, if you QUIT from the MODIFY
  462. menu, or DUPLICATE the active element, the UN-DO memory is emptied. You
  463. cannot subsequently un-do earlier modifications.