home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / WP / WP009A.ZIP / WINREAD.ME < prev   
Text File  |  1992-03-15  |  11KB  |  219 lines

  1.                Using PC-Write Standard Level with Windows 3.0
  2.  
  3. If you choose the Windows Control Files option during installation, the files
  4. listed below are copied to your working disk or directory. The file ED.PIF
  5. is used automatically by Windows and should work well. To customize how
  6. PC-Write Standard Level and Windows work together, see the sections below.
  7.  
  8.  
  9. Topics Covered:
  10.  
  11.   PC-Write Standard Level files for Windows
  12.   Setting up PC-Write to run from Windows
  13.   Program Information Files
  14.   Improving Performance
  15.   Associations
  16.   Using the Windows Clipboard
  17.  
  18.  
  19. PC-Write Standard Level Files for Windows
  20.  
  21. These files for Windows are included with PC-Write Standard Level 2.0:
  22.  
  23.   ED.PIF       PIF for PC-Write Standard Level
  24.   EDB.PIF      PIF for Background mode.
  25.   EDW.PIF      PIF for running in a window.
  26.   PCW.ICO      Icon for color screens.
  27.   PCWMONO.ICO  Icon for monochrome screens.
  28.  
  29. PIFs are described below. Icons can be setup when creating a new Program Item
  30. or added later by choosing File, Properties for a particular Program Item.
  31.  
  32.  
  33. Setting Up PC-Write to Run from Windows
  34.  
  35. There are several ways to start PC-Write from Windows. The Program Manager and
  36. File Manager have File, Run commands in which you type the name of a program
  37. to run. You can also get a DOS Prompt from the Program Manager's Main window.
  38. This gives you a C> prompt and you can start PC-Write as you would from DOS.
  39.  
  40. A better way is to setup an Icon (or Program Item) in the Program Manager.
  41. This gives you a small Icon you can double-click to start PC-Write, just like
  42. a Windows program. The Program Manager uses small windows called Program
  43. Groups to organize your Program Items. Your Program Manager comes with groups
  44. called Main, Accessories, and Games.
  45.  
  46.    1) Make Program Manager the Active Window.
  47.  
  48.    2) Choose the File, New command and then choose Program Group from the
  49.    dialog box and hit <enter>.
  50.  
  51.    3) Type a Description for the Program Group. This will be its name, like
  52.    Main and Accessories are the names for the other Groups. Don't worry about
  53.    typing in Group File, just hit <enter>.
  54.  
  55. Now you're ready to setup the Program Item.
  56.  
  57.    1) Again choose the File, New command from the Program Manager, but this
  58.    time verify that Program Item is selected and hit <enter>.
  59.  
  60.    2) Type in a Description for the Program Item. This is the name you will
  61.    see below the icon. "PC-Write" would be appropriate.
  62.  
  63.    3) Press Tab to move to the Command Line field. Type the path and name of
  64.    the program to run, or PIF to use. You must give the directory name used
  65.    to install PC-Write, such as "c:\pcw\ed.pif". Hit <enter> when done.
  66.  
  67. Your custom Program Group and Program Item are created. They're now a part of
  68. the Program Manager. You may re-arrange the position and size of the Program
  69. Group using the mouse or keyboard with the Size and Move commands on your
  70. Program Group's menu. If you want the Program Manager to remember the size and
  71. shape you set, make sure you choose Save Changes when you get the Exit Windows
  72. dialog box. This dialog box appears whenever you quit Windows.
  73.  
  74.  
  75. Program Information Files
  76.  
  77. Program Information Files (PIF's) control how Windows works with non-Windows
  78. programs like PC-Write. A PIF is not necessary for a program; Windows is happy
  79. using default settings. But to customize how a program runs under Windows you
  80. need a PIF. You use the Windows PIF Editor to change the settings in a PIF.
  81. Before we discuss how to change those settings we'll need a little background.
  82.  
  83. Windows can run in three different modes. Some Windows features we'll talk
  84. about apply to only one mode. If you're not sure which mode Windows is using
  85. it's easy to find out. Make the Program Manager the Active Window. Choose
  86. Help, About Program Manager... and Windows will report that you are in either
  87. 386 Enhanced Mode, Standard Mode, or Real Mode.
  88.  
  89. The PIF used when you start a program is important. From the Program Manager
  90. you can run a program from the File, Run... command, or choose an Icon. If you
  91. use the program name "ed.exe" Windows looks for a PIF named ed.pif. If there's
  92. more than one ed.pif, it's not obvious which will be used. It's safer to make
  93. sure a particular PIF is used by typing "ed.pif" in the File, Run... command.
  94. When you set up an icon in the Program Manager you can also type "ed.pif" in
  95. the Command Line field. Then you can have several different PIFs for PC-Write,
  96. choosing one depending on your needs.
  97.  
  98. There's a PIF with PC-Write Standard Level that's automatically installed to
  99. your working disk or directory. This file is documented on p. 111 of the
  100. Reference Manual. We'll make several changes to this base PIF to change how
  101. PC-Write and Windows work together.
  102.  
  103. To change a PIF you run the PIF Editor program that comes with Windows. This
  104. is in the Accessories group window of the Program Manager. Then load the PIF
  105. you want to change, ed.pif, using the File,Open... command.
  106.  
  107. Many people want to change what happens when you exit PC-Write. If you're
  108. running Windows in Standard or Real Mode, PC-Write's exit screen is visible
  109. with the phrase "Hit Any Key To Exit". In 386 Enhanced mode, you still have
  110. an inactive window when you exit PC-Write. In either case you need an extra
  111. keystroke to exit. The fix is the same for all modes. Use the PIF Editor to
  112. change the setting "Close window on exit". The next time you start PC-Write
  113. with your new PIF it will indeed close fully when done.
  114.  
  115.  
  116. In 386 Enhanced mode you have two choices for displaying non-Windows programs,
  117. full-screen or in a window. In full-screen, the whole screen is used by your
  118. program; Windows isn't visible. In a window, the rest of Windows is visible
  119. behind your program's window. The PIF sets the starting mode. PC-Write's
  120. default PIF uses Full Screen mode. You can change between running full screen
  121. or windowed by pressing the Alt-Enter key. To change your PIF to start in a
  122. window, change the Display Usage setting to Windowed.
  123.  
  124. You can do other things to facilitate running in a window. To use the PC-Write
  125. Print, View command, change your ed.def file as follows. From the Customizer,
  126. select Screen Display, Screen Options, Monitor, Override Monitor or Cursor,
  127. and choose CGA (or put the line &C:6 in ed.def). If you don't do this Windows
  128. will tell you the program can't run in a window when you try Print View.
  129. Maximizing your PC-Write window is usually best. Do this by choosing Maximize
  130. from the System menu for the window. This gives you a window large enough to
  131. display the entire PC-Write screen.
  132.  
  133. Another choice available in 386 Enhanced mode is multitasking. This lets many
  134. programs run at the same time. Most non-windows programs don't continue to run
  135. when you switch away from them. The current program (the one with the focus)
  136. is called the Foreground program. Others are called Background programs. You
  137. might want PC-Write to run in the Background if you have a process that takes
  138. some time, like printing. This lets you switch away and work elsewhere while
  139. PC-Write prints in the Background. This feature is also enabled by the PIF.
  140. To enable it, mark the Execution: Background check box. Note that any process
  141. runs faster in the Forground than in the Background. Sometimes this is OK,
  142. since you can do other work without waiting. Later we'll discuss things you
  143. can do adjust the Forground/Background tradeoff.
  144.  
  145.  
  146. Improving Performance
  147.  
  148. There are things you can do in 386 Enhanced mode to improve performance of
  149. non-Windows programs. The easiest is to run PC-Write full screen as described
  150. above. This gives the single greatest improvement.
  151.  
  152. Running in Exclusive mode can also gain performance, though it suspends all
  153. other programs that would run in the Background, including Windows. Set this
  154. in the PIF editor on the first screen by checking Execution: Exclusive.
  155.  
  156. Instead of setting Exclusive mode you can increase the Foreground priority.
  157. Setting a large Foreground priority is almost as good as Exclusive mode, but
  158. gives some processing time to Background programs. Set this in the Advanced
  159. section of the PIF editor. Replace the default value of 100 with 10000 to get
  160. the highest priority. In a similar way, Background Priority can be increased,
  161. though it has an effect only if the PIF permits the program to run in
  162. Background mode.
  163.  
  164. You can also make all programs run faster by using the Advanced Options screen
  165. to set Detect Idle Time correctly for PC-Write. This affects how Windows knows
  166. a program is not active. PC-Write can use the DOS Idle Call to tell Windows
  167. it's only waiting for a keystroke and another program can run. This is better
  168. than the default way Windows checks for idle time. First turn OFF the Detect
  169. Idle Time box in PIF Editor. Then in the PC-Write Customizer go to Screen
  170. Display, Screen Options, Monitor, Special and set DOS 5.0 Idle Call to ON.
  171.  
  172.  
  173. Two other areas affect the performance of all non-Windows programs. They are
  174. set system wide and so can't be targeted for PC-Write. Take care with these
  175. settings since they are very system and task dependent. You might find one
  176. setting works well if your only intention is to run one program under Windows,
  177. but performance may be poor if you run Background programs, too.
  178.  
  179. First is the Minimum Timeslice setting, accessed from the Control Panel in the
  180. 386 Enhanced section. The default value is 20. Larger values often give better
  181. PC-Write performance. Using 40 improved performance 35% on one system.
  182.  
  183. The other setting is in the Windows system.ini file. WindowUpdateTime only
  184. affects performance of non-Windows programs when they are running in a window.
  185. To change this value, edit system.ini and add or edit a line reading:
  186.  
  187.    WindowUpdateTime=200
  188.  
  189. The default value is 50. Using 200 improved performance 25% over the default.
  190.  
  191.  
  192. Associations
  193.  
  194. Associations link files of a given extension with a particular program file.
  195. From the File Manager, select any (say) .doc file, choose File, Associate, and
  196. type ed.pif as the program for .doc files to be associated with. Now when you
  197. double-click on any .doc file it is automatically loaded into PC-Write. You
  198. may also use the File, Run command from the File Manager or Program Manager
  199. and enter the name of a .doc file.
  200.  
  201.  
  202. Using the Windows Clipboard
  203.  
  204. The clipboard can be used to transfer information between non-Windows programs
  205. and Windows or other non-Windows programs. The methods differ depending on the
  206. mode Windows is running in.
  207.  
  208. In 386 Enhanced mode the easiest way to transfer text is when PC-Write is
  209. running in a window. Switch to windowed mode with Alt-Enter if necessary.
  210. Use the mouse to mark the text you wish to copy. Then pull down the System
  211. menu for your PC-Write window and choose Edit, Copy. Pasting is similar; with
  212. the text in the clipboard, pull down the system menu and choose Edit, Paste.
  213.  
  214. In Standard Mode you can also transfer text. To copy the text, press the
  215. PrintScrn key to copy the entire PC-Write screen. To paste, first place the
  216. cursor in your PC-Write file where you wish the text to appear, then minimize
  217. PC-Write. Bring up it's System menu by clicking once on the minimized icon,
  218. and choose Edit Paste to type the text into PC-Write.
  219.