home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR24 / PC2_140.ZIP / SOURCE.ZIP / PC2.IPF < prev    next >
Text File  |  1993-04-17  |  41KB  |  734 lines

  1. :userdoc.
  2. :title.PC/2 Help Program
  3. :body.
  4.  
  5.  
  6. .****************************************************************************************
  7. .*--------------------------------------------------------------------------------------*
  8. .* The user selected help with F1, the mouse or the keyboard.                           *
  9. .*--------------------------------------------------------------------------------------*
  10. .****************************************************************************************
  11.  
  12. :h1 res=2000.PC/2 Help for Help
  13. :lines align=center.
  14. :color fc=red.
  15. PC/2 - Program Commander/2 Version 1.40
  16. for IBM OS/2 2.x Presentation Manager
  17. Copyright (C) by Stangl Roman 04, 1993
  18. :color fc=default.
  19. :elines.
  20. :p.Please select one of the following topics for further information:
  21. :ul compact.
  22. :li.:link reftype=hd res=302.About the utility PC/2:elink.
  23. :li.:link reftype=hd res=2008.Installing PC/2:elink.
  24. :li.:link reftype=hd res=2003.Using PC/2 as a WPS addon:elink.
  25. :li.:link reftype=hd res=2004.Concepts of the Popup-Menu:elink.
  26. :li.:link reftype=hd res=2005.Starting a Program from PC/2:elink.
  27. :li.:link reftype=hd res=301.Setup the Popup-Menu:elink.
  28. :ul compact.
  29. :li.:link reftype=hd res=800.Adding a Submenu:elink.
  30. :li.:link reftype=hd res=500.Adding a Program:elink.
  31. :li.:link reftype=hd res=750.Resorting a (Sub)menu:elink.
  32. :li.:link reftype=hd res=950.Run-time parameters:elink.
  33. :eul.
  34. :li.:link reftype=hd res=2006.Error messages:elink.
  35. :eul.
  36. :p.:link reftype=hd res=2000.<Backward>:elink.
  37.                                   :link reftype=hd res=302.<Forward>:elink.
  38.  
  39.  
  40. .****************************************************************************************
  41. .*--------------------------------------------------------------------------------------*
  42. .* The user selected help from the About PC/2 dialog box.                               *
  43. .*--------------------------------------------------------------------------------------*
  44. .****************************************************************************************
  45.  
  46. :h1 res=302.Help for About PC/2
  47. :lines align=center.
  48. :color fc=red.
  49. PC/2 - Program Commander/2 Version 1.40
  50. for IBM OS/2 2.x Presentation Manager
  51. Copyright (C) by Stangl Roman 04, 1993
  52.  
  53. University for Business Administration
  54. and Management Vienna, Austria
  55. (Wirtschaftsuniversität Wien)
  56. :color fc=default.
  57. :elines.
  58. :p.E-Mail:
  59. :ul compact.
  60. :li.8650533@awiwuw11.wu-wien.ac.at
  61. :li.Roman Stangl @ IBM Austria National Support BBS ((0043) 0222 21145 6600)
  62. :eul.
  63. :p.This program is classified as Freeware. Under the copyright, you are allowed and
  64. encouraged to freely use, distribute or modify this program under the following
  65. conditions:
  66. :ul compact.
  67. :li.The complete source code and all executables are included. This rule also applies
  68. for any modifications you made.
  69. :li.You may only charge for the costs of duplicating.
  70. :li.:hp7.Any:ehp7. commercial use is prohibited without contacting me prior, except
  71. for incorporating the idea/code in any future release of OS/2 by IBM, however this
  72. clause doesn't apply for any private use.
  73. :li.You don't want to port this utility to MS Windows or Windows NT (never there).
  74. :eul.
  75. :p.You are encouraged to upload this utility to your favourite file-server or
  76. BBS. Please ensure that no file is missing, if you change the archive to
  77. a different compression scheme.
  78. :p.If you find this program useful and want to honor the six weeks of work writing
  79. this utility, you are welcome to send me a small fee of about 50 to 150 Austrian
  80. Schilling (about 5 to 15 dollar) to my home address. Of course you don't need
  81. to pay again, if a new release of PC/2 comes out.
  82. Please send any donations in cash, because it makes some troubles to exchange
  83. money orders or similar in Austria!
  84. Any suggestions are of course welcome too.
  85. :p.Thanks to all those, who sent me proposals and bug reports to improve this
  86. utility!
  87. :p.My home address is:
  88. :sl compact.
  89. :li.    Roman Stangl
  90. :li.    Strebersdorferstrasse 46
  91. :li.    2103  Langenzersdorf, Austria
  92. :esl.
  93. :p.:link reftype=hd res=2000.<Backward>:elink.
  94.                                   :link reftype=hd res=2008.<Forward>:elink.
  95.  
  96.  
  97. .****************************************************************************************
  98. .*--------------------------------------------------------------------------------------*
  99. .* The user selected help for PC/2 installation.                                        *
  100. .*--------------------------------------------------------------------------------------*
  101. .****************************************************************************************
  102.  
  103. :h1 res=2008.Installing PC/2
  104. :p.You have obviously started PC/2 once, because you are reading this help panel.
  105. The installation is just straight forward with the REXX script that installs PC/2,
  106. however there are some points to notice:
  107. :ul.
  108. :li.The installation installed an icon on the Desktop and started the help panels
  109. of PC/2. To ensure that OS/2 starts PC/2 automatically the next time you boot your
  110. system, you must start PC/2 again (you then can notice that the background behind
  111. the icon changes). If you have added :hp3.SET RESTARTOBJECTS=STARTUPFOLDERSONLY:ehp3.
  112. in your :hp2.CONFIG.SYS:ehp2. then you must also add a shadow of PC/2 to your startup
  113. folder to ensure PC/2 is started the next time you boot OS/2.
  114. :li.PC/2 requires the file :hp2.PC2HOOK.DLL:ehp2. to be accessible. PC/2 tries
  115. to find this file either in the directory, where PC/2 was started from, or in a path
  116. that is included in the environment variable :hp3.LIBPATH:ehp3.. PC/2 will
  117. issue an error message, if it can't find it.
  118. The file :hp2.PC2.HLP:ehp2. may be either accessible in the directory,
  119. where PC/2 is started from, or in a path that is included in the environment
  120. variable :hp3.HELP:ehp3.. If you have problems running PC/2, ensure,
  121. that the working directory of PC/2 is accessible by these variables
  122. in your :hp2.CONFIG.SYS:ehp2..
  123. :li.The installation assumes that you are using the default profile :hp2.Pc2.cfg:ehp2.
  124. containing a standart pre-defined Popup-Menu. If you want to use an other Popup-Menu,
  125. you have to open the Settings of PC/2 and add your preferred profile in the
  126. :hp3.Parameters:ehp3. entryfield. Please click for the next help panel to see the
  127. syntax of the command-line parameters of PC/2. This command-line parameters then
  128. must be added to the :hp3.Parameters:ehp3. entryfield.
  129. :li.You can only run one copy of PC/2 concurrently.
  130. :li.If you select a DOS-Program to be started via PC/2, the time-slice of their
  131. sessions is optimized (the DOS-Settings are modified to
  132. :hp3.IDLE_SECONDS=5 IDLE_SENSITIVITY=100:ehp3.) to get a better performance. This
  133. is useful for most DOS games.
  134. :li.You may use PC/2 with or without the WPS installed, you may even use PC/2 as
  135. a replacement for the WPS. To do so you must install PC/2 first. Then you have
  136. to ensure that :hp2.PC2HOOK.DLL:ehp2. is accessible by PC/2. PC/2 tries to find
  137. this file in the directory where PC/2 is started from or in a path pointed to by
  138. the :hp3.LIBPATH:ehp3. environment variable in your :hp2.CONFIG.SYS:ehp2..
  139. You also have to ensure that :hp2.PC2.HLP:ehp2. is accessible in the PC/2 directory or
  140. in a path pointed to by the :hp3.HELP:ehp3. environment
  141. variable in your :hp2.CONFIG.SYS:ehp2. file. The default access ":hp2..;:ehp2." is
  142. :hp7.not:ehp7. sufficient. Then replace the statement 
  143. :hp2.SET RUNWORKPLACE=C&colon.\OS2\PMSHELL.EXE:ehp2. with
  144. :hp2.SET RUNWORKPLACE=[path]PC2.EXE:ehp2. where :hp2.[path]:ehp2. is the pathname
  145. of the directory you installed PC/2. The next time you boot, PC/2 will be
  146. started as a replacement for the WPS.
  147. Be carefull, OS/2 seems to dislike any parameters added to the program that
  148. is started as the WPS!
  149. :p.:hp7.Caution! PC/2 was not tested on all OS/2 versions or installed software
  150. and hardware :ehp7.(simply because I don't have them):hp7., so there may be
  151. bugs!:ehp7.. Of course you can start the WPS from a command prompt by typing
  152. :hp2.START PMSHELL:ehp2. or add a corresponding entry to PC/2.
  153. :eul.
  154. :p.:link reftype=hd res=302.<Backward>:elink.
  155.                                   :link reftype=hd res=2003.<Forward>:elink.
  156.  
  157.  
  158. .****************************************************************************************
  159. .*--------------------------------------------------------------------------------------*
  160. .* The user selected general help from the PC/2 main help panel.                        *
  161. .*--------------------------------------------------------------------------------------*
  162. .****************************************************************************************
  163.  
  164. :h1 res=2003.General Help for PC/2
  165. :p.PC/2 - Program Commander is an addon for the WPS (Workplace Shell). The user
  166. can configure a menu that pops up, when the left mouse button is clicked anywhere
  167. on the Desktop. F.e. the Popup-Menu might look like:
  168. :artwork name='C:\PROGRAMMING\PC2\SOURCE\Pc2ipc01.bmp' align=left.
  169. :p.You have selected the item :hp3.Prompts:ehp3., which is a Submenu containing
  170. four more items. F.e. the item :hp3.OS/2 Window:ehp3. starts a windowed OS/2
  171. command prompt, when selected. This Popup-Menu is fully configurable, you may add,
  172. change or remove items. An item can either be a Submenu containing more items, or
  173. the name of a program.
  174. :p.Only the first Submenu :hp3.PC/2 Setup:ehp3. cannot be modified. This Submenu
  175. is used to setup PC/2 and to get help.
  176. :p.Your configuration is read from the default profile :hp2.Pc2.cfg:ehp2. each time
  177. PC/2 is started and saved every time you made changes.
  178. You can of course overwrite the default
  179. configuration filename to a file named :hp2.Filename.ext:ehp2. by invoking PC/2 with
  180. the following commandline option:
  181. :p.:hp2.PC2 [-Profile Filename.ext]:ehp2. or
  182. :p.:hp2.PC2 [/Profile Filename.ext]:ehp2.
  183. :p.where :hp2.Filename.ext:ehp2. conforms to a filename of a PC/2 profile. Both FAT
  184. and HPFS filename naming convention is accepted. A few
  185. sample configuration files are provided in this package.
  186. :p.As the default, the Popup-Menu appears if you double-click once on the Desktop,
  187. if no option or the following option is specified:
  188. :p.:hp2.PC2 [-DoubleClick]:ehp2. or
  189. :p.:hp2.PC2 [/DoubleClick]:ehp2.
  190. :p.You may select a single-click instead, by invoking PC/2 with the following
  191. commandline option:
  192. :p.:hp2.PC2 [-SingleClick]:ehp2. or
  193. :p.:hp2.PC2 [/SingleClick]:ehp2.
  194. :p.Please be sure not to combine both click behavior options.
  195. Of course the options changing the click behavior and the configuration
  196. filename options may be combined.
  197. :p.Because some people use PC/2 as a WPS replacement, PC/2 contains a Menuitem
  198. to ShutDown OS/2. By selecting this entry, it is safe to power off your PS/2 or
  199. PC after all disk activity has been stopped, although no windows are closed.
  200. If you run PC/2 as a WPS replacement and may want to start the WPS either by
  201. starting :hp2.PMSHELL.EXE:ehp2. from a command prompt or by starting a
  202. :hp2.PMSHELL:ehp2. Menuitem with PC/2.
  203. You then can follow the WPS initialization by heavy disk access and
  204. buildup of your Desktop with objects.
  205. PC/2 requires to know the Desktop (in technical terms the window handle
  206. of the Desktop) to be able to catch mouse button 1 clicks. If you start
  207. the WPS the Desktop changes too. Therefor PC/2 checks regularily (about every
  208. 2.5 seconds) if the Desktop has changed, so you may have to wait a little bit,
  209. after the WPS was started, that PC/2 recognizes mouse clicks again..
  210. :p.I would strongly recommend to start PC/2 during OS/2 boot. If you don't
  211. want to use the default profile, don't forget to add :hp2./Profile Filename.exe:ehp2.
  212. to the :hp3.Parameters:ehp3. entryfield in the Settings of PC/2.
  213. :p.The reason why I wrote this utility was primarily, that many programs
  214. installed on a system require many folders and icons on the Desktop. But to
  215. start a program, I don't want to open and close folders, so I made shadows on
  216. the Desktop messing it up. The solution I prefer is to click on the Desktop,
  217. getting immediately a menu and selecting the application from this menu. So
  218. PC/2 may help you to start your programs quickly, without needing to open
  219. and close folders.
  220. :p.:link reftype=hd res=2008.<Backward>:elink.
  221.                                   :link reftype=hd res=2004.<Forward>:elink.
  222.  
  223.  
  224. .****************************************************************************************
  225. .*--------------------------------------------------------------------------------------*
  226. .* The user selected concepts from the PC/2 main help panel.                            *
  227. .*--------------------------------------------------------------------------------------*
  228. .****************************************************************************************
  229.  
  230. :h1 res=2004.Concepts of PC/2
  231. :p.The basic idea behind PC/2 is to have an configurable Popup-Menu available,
  232. to start programs quicky, without having to open and close folders.
  233. :p.The Popup-Menu, popped up when you click the left mouse button anywhere on
  234. the Desktop (just like the right one for shutdown), consists of so-called
  235. items. An item may be a Submenu, which contains further items, or the title of
  236. an Application. A Submenu contains a little arrow right beside the title of
  237. the Submenu.
  238. :p.You can imagine this Popup-Menu as a tree, with applications as leaves and
  239. Submenus as nodes. PC/2 allows you to freely build your own tree. To do so
  240. you have to click on the Desktop with the left mouse button and to select
  241. :hp2.PC/2 Setup &rarrow. Configure PC/2:ehp2.. A dialog box appears, where you
  242. can add, modify or remove Submenus and Applications. The listbox displays all
  243. Submenus and Applications of one level (like a cut through the tree). Of
  244. course you may change this level up and down.
  245. :p.Once you have configured your tree of Submenus and Applications, just press
  246. :hp2.Ok:ehp2. to take them into effect and save them to the profile or
  247. :hp2.Cancel:ehp2. to take them into effect without saving.
  248. :p.:link reftype=hd res=2003.<Backward>:elink.
  249.                                   :link reftype=hd res=2005.<Forward>:elink.
  250.  
  251.  
  252. .****************************************************************************************
  253. .*--------------------------------------------------------------------------------------*
  254. .* The user selected help for starting a program from PC/2.                             *
  255. .*--------------------------------------------------------------------------------------*
  256. .****************************************************************************************
  257.  
  258. :h1 res=2005.Help for starting a program via PC/2
  259. :p.After you have configured the PC/2 Popup-Menu, you click on the Desktop
  260. with the left mouse button, select the Application you want to start and click on it.
  261. The Application will be started as if you were clicking on an icon.
  262. :p.One advantage starting an Application this way is, that you can manipulate
  263. many parameters on how the Application is started, one thing you can't do with
  264. many icons. F.e. you can start it invisible (useful for a backup program), making
  265. it only visible by selecting it from the tasklist. You may also specify the size
  266. of the Application or to start it in the background.
  267. :p.You can also start WPS objects, f.e. the Drives object or the Selective
  268. Install.
  269. If you have an WPS object, that represents a seamless WIN-OS2 application,
  270. you may even launch such a session.
  271. Be warned! - you have to create an WPS Object with :hp2.MAKEOBJ.CMD:ehp2. first
  272. to define an Object ID (Identifier) with that Object, to enable PC/2 to get
  273. this ID.
  274. :p.To close an Application, select the corresponding option from the Application
  275. or terminate it from the tasklist.
  276. :p.:link reftype=hd res=2004.<Backward>:elink.
  277.                                   :link reftype=hd res=301.<Forward>:elink.
  278.  
  279.  
  280. .****************************************************************************************
  281. .*--------------------------------------------------------------------------------------*
  282. .* The user selected help from the Configuration/Setup PC/2 dialog box.                 *
  283. .*--------------------------------------------------------------------------------------*
  284. .****************************************************************************************
  285.  
  286. :h1 res=301.Help for PC/2 Configuration
  287. :p.In the listbox, all Submenus and Applications of one level (imagine as a cut
  288. through the tree) are displayed. A Submenu has an arrow right beside it. F.e. assume
  289. the listbox contains 3 Submenus and 2 Appliations resulting in the following Popup-Menu:
  290. :artwork name='C:\PROGRAMMING\PC2\SOURCE\Pc2ipc02.bmp' align=left.
  291. :p.You may want to get into the Submenu :hp3.Prompts:ehp3.. Just select the Submenu
  292. :hp3.Prompts:ehp3. an click on the button :hp2.Level Down >>:ehp2.. The listbox
  293. will now be filled with all Submenus and Applications of the Submenu :hp3.Prompts:ehp3..
  294. To get one level up, simply press :hp2.<< Level Up:ehp2.. If nothing seems to
  295. change, you may be either at the highest level (the root of the tree) or at 
  296. the deapest level (a leaf of the tree) of a Submenu.
  297. :p.To configure the Popup-Menu just select an item.
  298. :ul compact.
  299. :li.To change or to remove this item use the buttons :hp2.Change Entry:ehp2. 
  300. or :hp2.Remove Entry:ehp2.. Either a new dialog appears allowing you to change
  301. the item, or the item will be removed.
  302. :li.To add a Submenu or an Application press the buttons :hp2.Add Submenu:ehp2.
  303. or :hp2.Add Program:ehp2.. A new dialog is displayed allowing you to add a new
  304. Submenu or Application, after pressing :hp2.Ok:ehp2. in this dialog, the Submenu
  305. or Application will be inserted :hp7.after:ehp7. the selected item, or at
  306. the end of the list if no item is selected.
  307. :li.To resort a Submenu press the button :hp2.Resort Menu:ehp2..
  308. A new dialog is displayed allowing you to resort the currently listed Submenu.
  309. Press here to get more information about the
  310. :link reftype=hd res=750.Resort:elink. dialog.
  311. :eul.
  312. :p.If the listbox is empty, you can't remove or change anything. You also can't
  313. select any item, but in this case you can add a Submenu or an Application by
  314. just pressing the buttons, without needing to select an item.
  315. :p.Press :hp2.Ok:ehp2. to write the configuration to the profile, or press
  316. :hp2.Cancel:ehp2. to keep the changes only in memory. Both buttons will dismiss
  317. the dialog.
  318. :p.:link reftype=hd res=710.Example 1:elink.
  319.      :link reftype=hd res=711.Example 2:elink.
  320. :p.:link reftype=hd res=2004.<Backward>:elink.
  321.                                   :link reftype=hd res=800.<Forward>:elink.
  322.  
  323. .*--------------------------------------------------------------------------------------*
  324. .* The user selected example 1 from the Setup PC/2 help.                                *
  325. .*--------------------------------------------------------------------------------------*
  326.  
  327. :h2 res=710.Setup example 1
  328. :p.Assume the listbox contains the following items resulting in the following Popup-Menu:
  329. :artwork name='C:\PROGRAMMING\PC2\SOURCE\Pc2ipc03.bmp' align=left.
  330. :p.You want to remove the Submenu :hp3.Editors:ehp3., rename the Submenu
  331. :hp3.Tools:ehp3. to :hp3.Utilities:ehp3. and add a Submenu :hp3.Demos:ehp3..
  332. :ol compact.
  333. :li.Select the item :hp3.Editors:ehp3.. You can now press the button
  334. :hp2.Remove Entry:ehp2. to remove the submenu, but only if this Submenu is empty.
  335. If it isn't empty, get into this Submenu by pression :hp2.Level Down >>:ehp2.
  336. and remove all items.
  337. :li.To rename :hp3.Tools:ehp3. to :hp3.Utilities:ehp3. select the item
  338. :hp3.Tools:ehp3. and press the button :hp2.Change Entry:ehp2.. A dialog box
  339. appears allowing you to rename this item.
  340. :li.Select the item, after which you want to insert the new Submenu. Then press
  341. the button :hp3.Add Submenu:ehp3. to add one. A dialog box appears allowing you
  342. to enter the title of a new Submenu.
  343. :eol.
  344.  
  345. .*--------------------------------------------------------------------------------------*
  346. .* The user selected example 2 from the Setup PC/2 help.                                *
  347. .*--------------------------------------------------------------------------------------*
  348.  
  349. :h2 res=711.Setup example 2
  350. :p.Assume that you have remove all items, leading to an empty listbox. Now
  351. you want to add the Applications :hp3.Backup:ehp3. and :hp3.Terminal:ehp3..
  352. :ol compact.
  353. :li.The listbox is empty, so you can't select any item. Just press the
  354. button :hp2.Add Program:ehp2. and a dialog box appears, allowing you to
  355. enter all the data required for the new Application.
  356. :li.Now the listbox contains the item :hp3.Backup:ehp3., select it and
  357. press the button :hp2.Add Program:ehp2. a second time. Again you get
  358. a dialog box, where you enter the data for the Application :hp3.Terminal:ehp3..
  359. :eol.
  360.  
  361.  
  362. .****************************************************************************************
  363. .*--------------------------------------------------------------------------------------*
  364. .* The user selected help from the Menu installation PC/2 dialog box.                   *
  365. .*--------------------------------------------------------------------------------------*
  366. .****************************************************************************************
  367.  
  368. :h1 res=800.Help for PC/2 Menu Installation
  369. :p.This dialog is used to get a name for a Submenu, which is then added to the
  370. Popup-Menu. You can enter whatever you like, f.e. to make a Submenu that contains
  371. OS/2 utilities you might enter :hp3.Utilities:ehp3..
  372. :p.If you have choosen in the previous dialog to change the name of a Submenu, then
  373. overwrite the pre-entered text.
  374. :p.Press :hp2.Ok:ehp2. to accept, or press :hp2.Cancel:ehp2. to ignore the data
  375. you entered.
  376. :p.:link reftype=hd res=810.Examples:elink.
  377. :p.:link reftype=hd res=301.<Backward>:elink.
  378.                                   :link reftype=hd res=500.<Forward>:elink.
  379.  
  380. .*--------------------------------------------------------------------------------------*
  381. .* The user selected examples from the Menu installation PC/2 help.                     *
  382. .*--------------------------------------------------------------------------------------*
  383.  
  384. :h2 res=810.Menu installation examples
  385. :p.Assume you have entered the following Submenu Titles:
  386. :dl tsize=22.
  387. :dthd.:hp2.Title
  388. :ddhd.Purpose:ehp2.
  389. :dt.Prompts
  390. :dd.You want to add a Submenu named :hp3.Prompts:ehp3., that contains OS/2 and DOS,
  391. fullscreen and windowed command prompts.
  392. :dt.Spreadsheets
  393. :dd.You want to add a Submenu named :hp3.Spreadsheets:ehp3. for your spreadsheet
  394. program like Lotus 123/G or Excel.
  395. :edl.
  396.  
  397.  
  398. .****************************************************************************************
  399. .*--------------------------------------------------------------------------------------*
  400. .* The user selected help from the Program installation PC/2 dialog box.                *
  401. .*--------------------------------------------------------------------------------------*
  402. .****************************************************************************************
  403.  
  404. :h1 res=500.Help for PC/2 Program Installation
  405. :p.This dialog is used to get the title, the path and filename, the working
  406. directory and parameters of a Menuitem, which is then added to the Popup-Menu.
  407. Additionally you can fine-tune the appearance of the program you want to add
  408. to the Popup-Menu. However the standard selections should provide a basis
  409. that is sufficient for most applications.
  410. :p.Sometimes you want that you can enter a commandline parameter before
  411. an application is started, f.e. assume that you want to be prompted for
  412. a text file just before your text-editor is invoked. PC/2 allows you to
  413. be prompted for commandline parameters in addition to static parameters
  414. before the application is launched. Press on
  415. :link reftype=hd res=950.Commandline Parameters:elink.
  416. to find out more about this feature.
  417. :p.The standard file dialog is opened, if you pressed :hp2.File Find:ehp2..
  418. Then you can easily find the program you want to add, the data of this
  419. program are inserted automatically. If a batch file was selected, the batch
  420. file will be inserted as a commandline parameter of a command processor.
  421. :p.Alternatively PC/2 supports also Drag &. Drop.
  422. You can f.e. use a Drives Object to select one application to add to PC/2.
  423. Then drag it into a free area within the dialog and drop it.
  424. PC/2 will insert the entryfields and application type correspondingly.
  425. :p.You may also add WPS Objects, either manually or by Drag &. Drop.
  426. If you insert an WPS Object correctly (I know this is a little bit
  427. particular) you may start your objects via the PC/2 Popup Menu.
  428. To add WPS Objects you must know the Object ID (Identifier), either
  429. for the preinstalled Objects from :hp2.OS2_20.RC:ehp2. or the
  430. Object ID defined with installation of one WPS Object by :hp2.MAKEOBJ.CMD:ehp2..
  431. :p.If you have choosen in the previous dialog to change the data of a Program,
  432. then overwrite or change the options you want.
  433. :p.Press :hp2.Ok:ehp2. to accept, or press :hp2.Cancel:ehp2. to ignore the data
  434. you entered.
  435. :p.For more information click on one of the following items:
  436. :ul compact.
  437. :li.:link reftype=hd res=551.Program Data:elink.
  438. :li.:link reftype=hd res=552.Program Type:elink.
  439. :li.:link reftype=hd res=553.Program Style:elink.
  440. :li.:link reftype=hd res=554.Program Size &. Position:elink.
  441. :li.:link reftype=hd res=555.Program Priority:elink.
  442. :eul.
  443. :p.:link reftype=hd res=550.Examples:elink.
  444. :p.:link reftype=hd res=800.<Backward>:elink.
  445.                                   :link reftype=hd res=750.<Forward>:elink.
  446.  
  447.  
  448. .*--------------------------------------------------------------------------------------*
  449. .* The user selected help from the Startup Parameters dialog box.                       *
  450. .*--------------------------------------------------------------------------------------*
  451.  
  452. :h1 res=950.Help for PC/2 Startup Parameters
  453. :p.PC/2 allows you to replace the commandline parameters of your application
  454. completly or partly.
  455. :p.F.e. assume you have a TCP/IP communications package installed on your
  456. system. You also have added an Menuitem that start a file transfer program named
  457. :hp3.FTP:ehp3.. :hp3.FTP:ehp3. requires as a parameter the name of the host
  458. you want to connect to.
  459. To prompt you for this parameter immediately before :hp3.FTP:ehp3. is started,
  460. you would modify the parameters entryfield of the PC/2 Program Installation
  461. dialog like :hp2.[Please enter host address]:ehp2.
  462. :p.Further assume that you selected the Menuitem :hp3.FTP:ehp3. from the
  463. Popup-Menu. Just before :hp3.FTP:ehp3. is started, a dialog box is displayed,
  464. requesting the host address from you. F.e. you will type
  465. :hp2.ftp-os2.nmsu.edu:ehp2., then the file transfer program will be invoked
  466. as if you typed :hp2.FTP ftp-os2.nmsu.edu:ehp2. from a commandline.
  467. :p.Generally the syntax for the commandline parameters is:
  468. :p.:hp2.Parameter(s) 1 [Text] Parameter(s) 2:ehp2.
  469. :p.Assume you typed :hp2.FirstFile.doc:ehp2. as the first and
  470. :hp2.ThirdFile.doc:ehp2. as the second parameter.
  471. You will be asked by a dialog box, what to replace :hp2.[Text]:ehp2. with.
  472. Assume you entered :hp2.MyFile.doc:ehp2. then the program will be invoked
  473. with the commandline parameters :hp2.FirstFile.doc MyFile.doc ThirdFile.doc:ehp2..
  474. The string :hp2.[Text]:ehp2. would have been replaced by :hp2.MyFile.doc:ehp2..
  475. Of course both parameters may be omited, both may contain more than one parameter
  476. or only one of them may present. Omiting :hp2.[Text]:ehp2. would start the
  477. application without asking you for a commandline parameter prior.
  478. :p.PC/2 allows you to edit commandline parameters similar to the WPS (open
  479. the Settings notebook of any application,
  480. position the cursor into the Parameters entryfield and
  481. press F1 or Help to get further information).
  482. :p.Press :hp2.Ok:ehp2. to accept the parameters you entered, or press
  483. :hp2.Cancel:ehp2. to replace the commandline parameters by an empty string.
  484.  
  485. .*--------------------------------------------------------------------------------------*
  486. .* The user selected examples from the Program installation PC/2 help.                  *
  487. .*--------------------------------------------------------------------------------------*
  488.  
  489. :h2 res=550.Program installation examples
  490. :p.Assume you want to add Lotus 123/G:
  491. :dl tsize=22.
  492. :dthd.:hp2.Fieldname
  493. :ddhd.You would enter:ehp2.
  494. :dt.Program Title:
  495. :dd.:hp3.Lotus 123/G:ehp3.
  496. :dt.Path and Filename:
  497. :dd.:hp3.c&colon.\123g\123g.exe:ehp3.
  498. :dt.Working Directory:
  499. :dd.:hp3.c&colon.\123g:ehp3.
  500. :dt.Parameters:
  501. :dd.(none)
  502. :edl.
  503. :p.Lotus 123/G is a Presentation Manager application so you would select
  504. :hp3.Presentation Manager:ehp3. as program type. The program style may be
  505. :hp3.Maximized:ehp3., because more information is visible. The priority
  506. may be left at the default selection :hp3.No Change:ehp3..
  507. :p.Assume you want to add the WPS Object System Clock (located in the
  508. folder :hp2.OS/2 System &rarrow. System Setup:ehp2.):
  509. :dl tsize=22.
  510. :dthd.:hp2.Fieldname
  511. :ddhd.You would enter:ehp2.
  512. :dt.Program Title:
  513. :dd.:hp3.System Clock:ehp3.
  514. :dt.Path and Filename:
  515. :dd.:hp3.<WP_CLOCK>:ehp3.
  516. :dt.Working Directory:
  517. :dd.(n/a)
  518. :dt.Parameters:
  519. :dd.(n/a)
  520. :edl.
  521. :p.The System Clock is a WPS Object, so :hp3.WPS Object:ehp3. is
  522. selected as the program type.
  523. You may have to look into the file :hp2.OS2_20.RC:ehp2. to get the defined
  524. name of preinstalled WPS Objects.
  525. Most settings are not available for WPS Objects.
  526. :p.Assume you want to add the WPS Object seamless WIN-OS2 Clock.
  527. First you must create an WPS Object with a known Object ID (Identifier) with
  528. :hp2.MAKEOBJ.CMD:ehp2., a small REXX-utility supplied with PC/2.
  529. To do so, start :hp2.MAKEOBJ.CMD:ehp2. and supply the Object ID
  530. :hp3.<WP_WIN_CLOCK>:ehp3. when you're asked to.
  531. Then open the newly created Object Settings and change them as you
  532. usually do, when you want to make an Object for a seamless WIN-OS2
  533. session of the WIN-OS2 clock.
  534. After you have created the WIN-OS2 clock object, you can drag it into
  535. this dialog of PC/2:
  536. :dl tsize=22.
  537. :dthd.:hp2.Fieldname
  538. :ddhd.You would enter:ehp2.
  539. :dt.Program Title:
  540. :dd.:hp3.Clock:ehp3.
  541. :dt.Path and Filename:
  542. :dd.:hp3.<WP_WIN_CLOCK>:ehp3.
  543. :dt.Working Directory:
  544. :dd.(n/a)
  545. :dt.Parameters:
  546. :dd.(n/a)
  547. :edl.
  548. :p.The seamless WIN-OS2 Clock is a WPS Object, so :hp3.WPS Object:ehp3.
  549. is used as the program type.
  550. Assuming that you created the seamless WIN-OS2 clock object as outlined
  551. before, then the Object ID is :hp3.<WP_WIN_CLOCK>:ehp3..
  552. If you had an WPS Object before, and you don't know the Object ID, you
  553. have to create a new one with :hp2.MAKEOBJ.CMD:ehp2., to define a known
  554. Object ID.
  555. :p.Sorry, this may be a little complicated, but it is the only way I know
  556. to get a known Object ID and the only way I know to start seamless
  557. WIN-OS2 sessions.
  558.  
  559. :h2 res=551.Program Data
  560. :p.For a normal user it is the easiest way to use the following guidelines.
  561. According to the type of application you add, some fields may not be editable
  562. or visible:
  563. :dl tsize=22.
  564. :dthd.:hp2.Fieldname
  565. :ddhd.You would enter:ehp2.
  566. :dt.Program Title:
  567. :dd.Here you enter the name, under which the program should appear in the tasklist.
  568. For OS/2 and DOS windows, this will be the title of the window.
  569. You may also name the Objects here, you want to add.
  570. :dt.Path and Filename:
  571. :dd.Here you enter the fully qualified path and filename. F.e. you might enter
  572. :hp3.c&colon.\os2\cmd.exe:ehp3. to obtain an OS/2 command prompt, or
  573. :hp3.c&colon.\os2\mdos\qbasic.exe:ehp3. to start the basic interpreter.
  574. :p.Here you also enter the name of WPS Objects.
  575. WPS Objects are referred either by their defined Object ID (Identity) f.e.
  576. :hp3.<WP_DRIVES>:ehp3. or :hp3.<WP_INST>:ehp3. for preinstalled Objects,
  577. of f.e. :hp3.<WP_USER_CALC>:ehp3. or :hp3.<WP_WIN_PBRUSH>:ehp3. for
  578. Objects installed by the user with :hp2.MAKEOBJ.CMD:ehp2., a REXX-utility
  579. supplied with PC/2.
  580. Preinstalled WPS Objects have usually a defined name, you may need to take a
  581. look into the file :hp2.OS2_20.RC:ehp2. to get further information.
  582. :p.PC/2 can only launch WPS Objects named by their defined ID, so be carefull
  583. to get either the correct ID from :hp2.OS2_20.RC:ehp2. or to define an Object
  584. with a known ID with :hp2.MAKEOBJ.CMD:ehp2.
  585. For a user installed Objects, you can freely use any name, preferably a
  586. descriptive name in the form :hp3.<WP_xxxx>:ehp3..
  587. :p.Sorry, this may be a little complicated, but it is the only way I know
  588. to get a known Object ID and the only way I know to start seamless
  589. WIN-OS2 sessions.
  590. You can't use the Program Template to create Objects if you want them to
  591. add to PC/2, because PC/2 can't obtain the Object ID of such Objects.
  592. :dt.Working Directory:
  593. :dd.Here you enter the directory where the EXE, HLP and DLL files of your
  594. application are located. Before the application is started, a change drive
  595. and change directory call is made, to make this directory the working directory.
  596. :dt.Parameters:
  597. :dd.Here you enter the parameters passed to the application. PC/2 allows you
  598. to be asked for commandline parameters before the application is invoked.
  599. Press on :link reftype=hd res=950.Commandline Parameters:elink.
  600. to find out more about this feature. Assume that you want
  601. to use VIEW.EXE to view the command reference, you would enter
  602. :hp3.c&colon.\os2\book\cmdref.inf:ehp3..
  603. :dt.DOS Settings:
  604. :dd.If you select as program type a DOS Full-Screen or DOS Window, a multiline
  605. entryfield is displayed where you can enter the DOS Settings you need. Default,
  606. the DOS Settings :hp3.IDLE_SECONDS=5:ehp3. and :hp3.IDLE_SENSITIVITY:ehp3. are
  607. added if you create a DOS application for the first time. (You have to spell
  608. the DOS Settings exactly as they are displayed in the standard DOS Settings
  609. dialog - even then some can't be set for whatever reasons there are.)
  610. :dt.:hp2.File Find:ehp2.&colon.
  611. :dd.If you click on this button, the standard file dialog of OS/2 is displayed
  612. where you can select the application you want to install. The application
  613. parameters (f.e. path) will then be inserted automatically in the
  614. corresponding entryfields.
  615. :dt.Drag &. Drop:
  616. :dd.You can alternatively use the Drag &. Drop operation to install one
  617. application. Select one application from f.e. a Drives object or from
  618. a filemanager, drag it into the dialog to any area that accepts it and
  619. drop it.
  620. The settings will be adjusted according to the application you dragged into.
  621. You may also drag any WPS Object into this dialog, but be carefull to
  622. verify the name of the Object, because I don't know how to do this
  623. automatically (you may need to look into :hp2.OS2_20.RC:ehp2.
  624. for the exact spelling of preinstalled Objects.
  625. :edl.
  626. :p.For a power user, the data entered may be less. Because the OS/2 API
  627. DosStartSession() is used to start the application, all rules for this
  628. API apply as described in the toolkit. Hence you may leave the entryfield
  629. Path and Filename blank and then select from the
  630. :link reftype=hd res=552.Program Type:elink. group an
  631. OS/2 or DOS fullscreen or window, to get a command prompt.
  632. :p.You may also start an appliciation indirectly through a secondary command
  633. processor by specifying :hp3.c&colon.\os2\cmd.exe:ehp3. as the Path and Filename and
  634. use then the :hp3./C:ehp3. or :hp3./K:ehp3. option of CMD.EXE in the
  635. Parameters entryfield.
  636.  
  637. :h2 res=552.Program Type
  638. :p.Here you can select the type of application you want to add.
  639. By default, PC/2 tries to determine the type of an application you installed
  640. via the standard file dialog or via Drag &. Drop.
  641. :p.You generally have to verify, that the Program Type setting corresponds
  642. to the application you installed, for most programs you can use
  643. :hp2.Determined by WPS:ehp2. if you aren't sure.
  644. :p.According to the Program Type that is selected, some settings may not
  645. be editable or visible.
  646. :p.OS/2 and DOS Fullscreen or Windows are only used, if you want to start
  647. a command prompt as the application. In this case, you usually enter in the
  648. the entryfield Path and Filename of the group Program Data the path of
  649. the corresponding command processor. A advanced technique to select the
  650. type of command processor only with these radiobuttons is described under
  651. the group :link reftype=hd res=551.Program Data:elink..
  652.  
  653. :h2 res=553.Program Style
  654. :p.These selections should be self-explanatory, you can only change one of
  655. the radiobuttons, but apply as many checkboxes as you want as the Program
  656. Style. F.e. if you selected :hp3.Minimized:ehp3., :hp3.Invisible:ehp3. and
  657. :hp3.Background:ehp3., the application will be started minimized, in the
  658. background and invisible (this may make sense for a backup program).
  659.  
  660. :h2 res=554.Program Size &. Position
  661. :p.Here you can use the checkbox to start an application with a preselected
  662. size and position. If you select the checkbox :hp3.Size, Position:ehp3. you
  663. will be able to modify the size the started application should appear.
  664. :p.If you deselect the checkbox, the data will be saved, but the application
  665. is started ignoring the size and position you entered.
  666.  
  667. :h2 res=555.Program Priority
  668. :p.At this level of development, I don't know how to change the priority of a
  669. program started as an independent session, so these radiobuttons are
  670. unavailable. I know how to change the priority started as a child of PC/2, but if the
  671. parent application PC/2 fails (by a bug or a close from the tasklist) all the
  672. childs are also terminated, which is surely unacceptable.
  673.  
  674.  
  675. .****************************************************************************************
  676. .*--------------------------------------------------------------------------------------*
  677. .* The user selected help from the Resort PC/2 dialog box.                              *
  678. .*--------------------------------------------------------------------------------------*
  679. .****************************************************************************************
  680.  
  681. :h1 res=750.Help for PC/2 Resort
  682. :p.This dialog box contains two listboxes, the left one that displays the currently
  683. available Menuentries and the right one that displays the currently resorted
  684. Menuentries.
  685. Select the first Menuentry from the left listbox and press the 
  686. :hp2.Reorder:ehp2. button, to resort it to the right listbox.
  687. For the next Menuentry(ies) repeat this procedure, until the left listbox is empty.
  688. :p.You can cancel the resort before you have done any sort, but you have to resort
  689. the complete Submenu once you made one resort operation.
  690. :p.All sorted Menuentries in the right listbox can't be started with PC/2 until
  691. you complete the resort by pressing :hp2.OK:ehp2..
  692. Warning! - You have to press :hp2.OK:ehp2. in the :link reftype=hd 
  693. res=301.Confguration Dialog:elink. to write the resorted Menuentries
  694. structure to the configuration file.
  695. :p.:link reftype=hd res=500.<Backward>:elink.
  696.                                   :link reftype=hd res=2006.<Forward>:elink.
  697.  
  698.  
  699. .****************************************************************************************
  700. .*--------------------------------------------------------------------------------------*
  701. .* The user selected error help.                                                        *
  702. .*--------------------------------------------------------------------------------------*
  703. .****************************************************************************************
  704.  
  705. :h1 res=2006.Help for PC/2 Errors
  706. :p.PC/2 can't verify all user input for validity, so some user input may cause
  707. some PC/2 functions to fail. In this case, a message box is displayed containing
  708. the module and the sourcecode linenumber that failed. Also a error message is
  709. displayed containing which error occured and what should be done to resolve the
  710. problem.
  711. :p.F.e. you might have configured to start the program :hp3.VIEW.EXE:ehp3. by
  712. writing :hp3.c&colon.\os3\view.exe:ehp3. in the entryfield :hp2.Path and Filename:ehp2.
  713. in the Program Installation dialog. This of course leads to an error, because when
  714. OS/2 tries to start this item, it can't find the directory :hp3.\os3\:ehp3. simply
  715. because it should read :hp3.\os2\:ehp3.. A message box is displayed saying an
  716. error occured and that the user input should be corrected.
  717. :p.The messagebox has three buttons that may be pressed:
  718. :dl tsize=22.
  719. :dthd.:hp2.Button
  720. :ddhd.Result:ehp2.
  721. :dt.:hp2.Abort:ehp2.
  722. :dd.PC/2 will be terminated and all unsaved data will be lost. You have to restart
  723. PC\2 again. This button should be the last one you select.
  724. :dt.:hp2.Retry:ehp2.
  725. :dd.The error is ignored, you may need to correct your data entered in the entryfields.
  726. :dt.:hp2.Ignore:ehp2.
  727. :dd.The error is ignored, you may need to correct your data entered in the entryfields.
  728. :edl.
  729. :p.:link reftype=hd res=750.<Backward>:elink.
  730.                                   :link reftype=hd res=2000.<Forward>:elink.
  731.  
  732. :euserdoc.
  733.  
  734.