home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / draftit.zip / draftit.HLP (.txt) < prev    next >
OS/2 Help File  |  1996-07-01  |  16KB  |  380 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
  3.  
  4.  DraftIT is an editor for OS/2 Warp, created with two groups of users 
  5. especially in mind. On the one hand, it provides a tool for people like myself, 
  6. who use editors for text composition and only commit their work to a word 
  7. processor for final formatting. On the other, it includes strong support for 
  8. ReXX developers, integrating the RxD debugger and allowing trial runs of ReXX 
  9. procedures straight from the editor they're created with. 
  10.  
  11.  DraftIT's features include; auto-backup, e-mail support, an integrated card 
  12. database (for any data you like), copying of selected text to the WPS, macro 
  13. capability, easily accessed note files (to accompany any document you're 
  14. working on), text markers, copy windows (press a button to split the screen, 
  15. displaying a second copy of the current document underneath the first), screen 
  16. font selection, indentation, flexible printing via the shareware package 
  17. FlexText, search and replace etc.. 
  18.  
  19.  DraftIT makes use of external modules whenever this seems more sensible than 
  20. using integrated ones. For example, e-mail support is provided via any mail 
  21. program you're already running. You don't need to import any address books etc. 
  22. - and you manage your mail in an environment you are used to. Some of these 
  23. external modules are already part of OS/2 (such as PMSEEK), one (RxD) is free 
  24. of charge EWS software from IBM and included in this package. Two, RexxBase and 
  25. FlexText, are included in the DraftIT package, but as shareware products. 
  26. Please register them, if you wish to make use of them, even though DraftIT 
  27. itself is freeware. 
  28.  
  29.  I'd very much appreciate any comments, complaints or tips from users, as I am 
  30. aiming to continue work on this product and enhance it in many ways. Please 
  31. contact me via my Compuserve address; 100045,1712. 
  32.  
  33.  Enjoy, Martin Farrent 
  34.  
  35.  
  36. ΓòÉΓòÉΓòÉ 2. New ΓòÉΓòÉΓòÉ
  37.  
  38.  This function of the File menu opens a new text window. If you insert text in 
  39. this window, you'll be asked whether you wish to save it before DraftIT closes. 
  40.  
  41.  
  42. ΓòÉΓòÉΓòÉ 3. Open ΓòÉΓòÉΓòÉ
  43.  
  44.  This function calls a dialogue box from which you can open an existing file. 
  45.  
  46.  
  47. ΓòÉΓòÉΓòÉ 4. Save ΓòÉΓòÉΓòÉ
  48.  
  49.  This function saves a document to your disk. If the document is new, Save as 
  50. will be invoked. 
  51.  
  52.  
  53. ΓòÉΓòÉΓòÉ 5. Save as ΓòÉΓòÉΓòÉ
  54.  
  55.  This function allows you to specify a path/title, under which the document 
  56. will be saved. 
  57.  
  58.  
  59. ΓòÉΓòÉΓòÉ 6. Print ΓòÉΓòÉΓòÉ
  60.  
  61.  DraftIT does not do its own printing. Instead, it passes these jobs on to 
  62. FlexText, a shareware program included in this package. FlexText is a highly 
  63. flexible tool which you should explore thoroughly using the help files 
  64. provided. Please register it, if you wish to continue using it. 
  65.  
  66.  NOTE; the executable 'flxts.exe' requires the parameter '..\print.tmp' in its 
  67. settings notebook for automatic printing of the document DraftIT is currently 
  68. processing. Also, you should not move FlexText from its current location in its 
  69. own DraftIT subdirectory. Otherwise, the program will not find the right file 
  70. to print. 
  71.  
  72.  
  73. ΓòÉΓòÉΓòÉ 7. AutoBackup ΓòÉΓòÉΓòÉ
  74.  
  75.  This function calls a dialogue box for you to specify whether you want 
  76. documents automatically backed up each time they are opened. The backup copies 
  77. will reside in the document's directory, with the suffix '.bak'. 
  78.  
  79.  
  80. ΓòÉΓòÉΓòÉ 8. Exit ΓòÉΓòÉΓòÉ
  81.  
  82.  Closes down the program. You'll be asked whether you wish to save documents 
  83. that have been modified since you last saved them. 
  84.  
  85.  
  86. ΓòÉΓòÉΓòÉ 9. Undo/Redo ΓòÉΓòÉΓòÉ
  87.  
  88.  This function undoes the last change you made to a document. 
  89.  
  90.  
  91. ΓòÉΓòÉΓòÉ 10. Cut ΓòÉΓòÉΓòÉ
  92.  
  93.  This function cuts selected text to the clipboard. NOTE; you need not use the 
  94. menu or toolbar if you are cutting text to move it within a document. Rather, 
  95. select the text, then click the right mouse button. Move the cursor to the 
  96. required place and click the right mouse button again. 
  97.  
  98.  
  99. ΓòÉΓòÉΓòÉ 11. Copy ΓòÉΓòÉΓòÉ
  100.  
  101.  This function copies selected text to the clipboard. 
  102.  
  103.  
  104. ΓòÉΓòÉΓòÉ 12. Paste ΓòÉΓòÉΓòÉ
  105.  
  106.  This function pastes text from the clipboard to your document. 
  107.  
  108.  
  109. ΓòÉΓòÉΓòÉ 13. Find ΓòÉΓòÉΓòÉ
  110.  
  111.  This function calls a dialogue box from which you can start a search for a 
  112. text string. You can choose between case sensitive and insensitive searches. A 
  113. search begins at the beginning of a document and ends when the specified string 
  114. has been found once. 
  115.  
  116.  
  117. ΓòÉΓòÉΓòÉ 14. Continue search ΓòÉΓòÉΓòÉ
  118.  
  119.  This function continues a search for a text string, taking the current cursor 
  120. position as its starting point. 
  121.  
  122.  
  123. ΓòÉΓòÉΓòÉ 15. Search and replace ΓòÉΓòÉΓòÉ
  124.  
  125.  This function calls a dialogue box which allows you to specify a text string 
  126. and replace it with another. All occurrences of the string will be replaced. 
  127. Such operations are always case sensitive. 
  128.  
  129.  
  130. ΓòÉΓòÉΓòÉ 16. Tile ΓòÉΓòÉΓòÉ
  131.  
  132.  If you are working with more than one document, this function tiles your text 
  133. windows. 
  134.  
  135.  
  136. ΓòÉΓòÉΓòÉ 17. Cascade ΓòÉΓòÉΓòÉ
  137.  
  138.  Cascades text windows, if more than one is open. 
  139.  
  140.  
  141. ΓòÉΓòÉΓòÉ 18. Next ΓòÉΓòÉΓòÉ
  142.  
  143.  Gives focus to the next window. 
  144.  
  145.  
  146. ΓòÉΓòÉΓòÉ 19. Open copy window ΓòÉΓòÉΓòÉ
  147.  
  148.  This function is intended for people who need to view more than one copy of a 
  149. document when editing it - for example, to reference a different portion of 
  150. that document. It opens a (blue) window containing a copy of the document and 
  151. places it beneath the original. If you have more than one window open already, 
  152. it will tile your windows. NOTE; the copy window depicts the document as last 
  153. saved - it is not automatically updated while you work on the text. 
  154.  
  155.  
  156. ΓòÉΓòÉΓòÉ 20. Insert Marker ΓòÉΓòÉΓòÉ
  157.  
  158.  Inserts a marker (>>>) at the current cursor position. This is intended for 
  159. tagging a point at which you wish to continue work later. You can comment the 
  160. marker out, if your text is a programming script, i.e. '/*>>>*/ ' for ReXX. Use 
  161. Go to next marker to search for markers, starting at the current cursor 
  162. position. 
  163.  
  164.  
  165. ΓòÉΓòÉΓòÉ 21. Go to next marker ΓòÉΓòÉΓòÉ
  166.  
  167.  Searches for the next marker, starting at the current cursor position. 
  168.  
  169.  
  170. ΓòÉΓòÉΓòÉ 22. Notes ΓòÉΓòÉΓòÉ
  171.  
  172.  Any document can have an associated notes file. This is named after the 
  173. document itself, with the suffix '.nts', and resides in the document's 
  174. directory. The first time you use this function for a document, a notes file 
  175. will be created. Afterwards, an existing notes file will be displayed in a 
  176. special window. Such files can be used to record memos etc. associated with a 
  177. document. 
  178.  
  179.  
  180. ΓòÉΓòÉΓòÉ 23. Get line count ΓòÉΓòÉΓòÉ
  181.  
  182.  Gets the number of lines in a text window. If you are using word wrap, this 
  183. number depends on the size of the window. 
  184.  
  185.  
  186. ΓòÉΓòÉΓòÉ 24. Copy selection to WPS ΓòÉΓòÉΓòÉ
  187.  
  188.  Selected text will be copied to your desktop, as a separate file named after 
  189. the first 21 characters in the text selection. If the selection is smaller than 
  190. 22 characters, it will be deemed too short to copy. 
  191.  
  192.  You can also perform this operation the other way round by dragging a .txt 
  193. file from the WPS (or a folder) to a DraftIT text window. Its contents will be 
  194. copied at the current cursor position. 
  195.  
  196.  
  197. ΓòÉΓòÉΓòÉ 25. Font ΓòÉΓòÉΓòÉ
  198.  
  199.  Calls a dialogue box from which you can select a screen font. 
  200.  
  201.  
  202. ΓòÉΓòÉΓòÉ 26. Indentation ΓòÉΓòÉΓòÉ
  203.  
  204.  Allows you to specify how many spaces are inserted when the Enter key is 
  205. pressed. 
  206.  
  207.  
  208. ΓòÉΓòÉΓòÉ 27. Word wrap on/off ΓòÉΓòÉΓòÉ
  209.  
  210.  Switch word wrapping on or off for the current text window. The default is on. 
  211.  
  212.  
  213. ΓòÉΓòÉΓòÉ 28. CardBase ΓòÉΓòÉΓòÉ
  214.  
  215.  Runs a card style database utility. This is intended for any information you 
  216. like to keep 'at your finger tips' - such as code fragments or snippets of 
  217. general knowledge. 
  218.  
  219.  
  220. ΓòÉΓòÉΓòÉ 29. PMSeek ΓòÉΓòÉΓòÉ
  221.  
  222.  Runs the OS/2 search tool PMSeek, which allows you to search for files by name 
  223. or by text strings they contain. Such files then need to be opened 'manually', 
  224. via DraftIT's files menu or toolbar. I'm planning to include an integrated 
  225. search tool in the next version of the program which would automatically open 
  226. text windows for files retrieved by such searches. 
  227.  
  228.  
  229. ΓòÉΓòÉΓòÉ 30. EMail ΓòÉΓòÉΓòÉ
  230.  
  231.  DraftIT supports e-mail by copying the entire contents of a text window to the 
  232. clipboard and then starting any mail program you wish to use. The first time 
  233. you use this function, you'll have to specify the path to the mail program. 
  234. Once it has been evoked, you can retrieve the text from the clipboard. 
  235.  
  236.  
  237. ΓòÉΓòÉΓòÉ 31. RexxTrial ΓòÉΓòÉΓòÉ
  238.  
  239.  DraftIT allows you to trial run a ReXX procedure in the current text window. 
  240. It does so by creating a file called 'trial.cmd' and running it in the PMREXX 
  241. environment, which provides a PM window for your procedure's input and output. 
  242.  
  243.  Since ReXX allows OS/2 commands, you can also use this feature as a kind of 
  244. 'shell' for command line functions. Simply write a normal command as if it were 
  245. a short ReXX procedure, such as this; 
  246.  
  247.  /* */ 
  248.  
  249.  'dir' 
  250.  
  251.  The advantage is that the output goes to a PMREXX window, where it can be 
  252. scrolled, edited etc.. For example, you might wish to copy it to the clipboard 
  253. and use it in a document. 
  254.  
  255.  
  256. ΓòÉΓòÉΓòÉ 32. RexxDebug ΓòÉΓòÉΓòÉ
  257.  
  258.  DraftIT supports debugging of ReXX procedures using the IBM EWS (Employee 
  259. Written Software) program RxD. This fully documented utility is included in the 
  260. DraftIT package and installed during installation of the editor itself. All you 
  261. need to do is run it from the ReXX menu. 
  262.  
  263.  One word of warning; do not attempt to debug DraftIT macros with this feature. 
  264. Unlike simple ReXX scripts, macros are not run as procedures in their own 
  265. right, but within the main program. The system only understands the editor's 
  266. specific macro commands when they are evoked this way - that is, from the macro 
  267. menu. If you run them from the ReXX menu, they're bound to crash. 
  268.  
  269.  
  270. ΓòÉΓòÉΓòÉ 33. Macros (General) ΓòÉΓòÉΓòÉ
  271.  
  272.  DraftIT uses ReXX as its macro language, so that a macro script starts with a 
  273. typical ReXX header (/* */) and can make use of any feature in the ReXX 
  274. language, including external ones in libraries. DraftIT extends basic ReXX by a 
  275. number of specific commands which all start with 'DT_' and cover all the 
  276. fundamental editing functions, plus several others. See Macros (Commands)  for 
  277. more. 
  278.  
  279.  A new macro should be saved in DraftIT's root directory with the suffix 
  280. '.mac'. The macro menu lets you run, edit, test and save macros. Do not attempt 
  281. to debug macros from the ReXX menu. They'll crash! 
  282.  
  283.  Unfortunately, there's no neat way of debugging DraftIT macros at all (I'm 
  284. working on it). I'm afraid the program is not very helpful when an error 
  285. occurs. If the error is simply a wrong number of parameters in a DT command, 
  286. you'll be told so. After this, the script fails and a ReXX error will be 
  287. reported. If the error is one of syntax or an incorrect call to a normal ReXX 
  288. routine, you'll be told that a ReXX error has occurred - but not which one. The 
  289. only solution at the present time is to write macros in small portions and test 
  290. frequently while extending them. 
  291.  
  292.  One useful function of the program is that you can start it with a macro as a 
  293. parameter, using the switch '/m macroname.mac' (substituting macroname with the 
  294. full path and name of the macro you wish to start). The intention is to enable 
  295. system automisation. For example, you could write a DraftIT macro for a certain 
  296. task, then start DraftIT (plus the macro) from within a broader ReXX script. 
  297. This might make further use of text DraftIT has copied to the clipboard, or use 
  298. DraftIT to present data retrieved from a BBS, etc.. 
  299.  
  300.  
  301. ΓòÉΓòÉΓòÉ 34. Macros (Commands) ΓòÉΓòÉΓòÉ
  302.  
  303.  CALL DT_NEW - opens a new text window. 
  304.  
  305.  CALL DT_OPEN 'Filename' - opens a document 
  306.  
  307.  CALL DT_SAVE - saves the document in the current text window. NOTE; if you try 
  308. to save a new (unnamed) document, the 'Save as' dialogue will be called up, 
  309. halting the flow of your macro. The solution is to create a new file using 
  310. SysCreate Object, before opening it with DT_OPEN and further processing it. 
  311.  
  312.  CALL DT_CUT - cuts selected text to the clipboard 
  313.  
  314.  CALL DT_COPY - copies selected text to the clipboard 
  315.  
  316.  CALL DT_PASTE - pastes text from the clipboard to a text window 
  317.  
  318.  CALL DT_INSERT 'Text' - inserts text string (limit: 255 chars) at current 
  319. cursor position 
  320.  
  321.  CALL DT_DELETE 'x' - deletes x characters of text, starting at current cursor 
  322. position 
  323.  
  324.  CALL DT_MARK 'x' - marks x characters of text, starting at current cursor 
  325. position 
  326.  
  327.  RC = DT_GETCURSOR() - gets current cursor position and places it in RC 
  328.  
  329.  CALL DT_SETCURSOR 'x' - places cursor at character position x (the first 
  330. position in a text window is 0. If x is larger than the number of chars in a 
  331. text window, the cursor will got to the end of the text) 
  332.  
  333.  RC = DT_GETLENGTH() - retrieves number of characters in a text and places the 
  334. result in RC 
  335.  
  336.  CALL DT_SEARCH 'Searchstring' - searches for text, starting at current cursor 
  337. position, then selects (marks) such a string if found. The search is always 
  338. case insensitive! 
  339.  
  340.  CALL DT_SAY 'message' - calls a message box containing 'message' 
  341.  
  342.  RC = DT_YESNO('Query') - puts a query (message box) to the user, then returns 
  343. 'YES' or 'NO' in RC, depending on which button has been pressed 
  344.  
  345.  RC = DT_PULL('Query') - calls a dialogue box, putting a query to the user and 
  346. allowing him or her to type an answer in an entry field, then returns that 
  347. answer in RC, or 'NOANSWER' if OK button was not pressed 
  348.  
  349.  
  350. ΓòÉΓòÉΓòÉ 35. 'Hidden' functions ΓòÉΓòÉΓòÉ
  351.  
  352.  Moving text without evoking the Edit menu is described in Cut 
  353.  
  354.  Using the editor as a 'shell' for OS/2 commands is described in RexxTrial 
  355.  
  356.  Starting DraftIT and a macro similtaneously is described in Macros (General) 
  357.  
  358.  DraftIT accepts a file name as a parameter. You can also start the program and 
  359. open a file similtaneously via drag and drop on the editor's program object 
  360. (icon). If you start DraftIT first, you can drag and drop multiple text files 
  361. on the main window's gray background, provided no text window is covering it. 
  362. Each file will be opened in a separate text window. 
  363.  
  364.  Single .txt files may be dragged to an open text window. Their contents will 
  365. be copied at the current cursor position. 
  366.  
  367.  
  368. ΓòÉΓòÉΓòÉ 36. Future enhancements ΓòÉΓòÉΓòÉ
  369.  
  370.  Besides providing better debugging capabilities for macros, I intend to 
  371. include an integrated file search tool in the next version of the program. 
  372. Apart from that I'm open to ideas and suggestions, which you can send to: 
  373.  
  374.  Martin Farrent, Eifelstrasse 4, 53119 Bonn, Germany 
  375.  
  376.  Or mail me at: 
  377.  
  378.  100045.1712@compuserve.com 
  379.  
  380.