home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / INFO / DIVSINFO / FORUM / OS2WPS.INF (.txt) < prev   
OS/2 Help File  |  1994-05-10  |  111KB  |  2,586 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. About this forum ΓòÉΓòÉΓòÉ
  3.  
  4.      TALKLINK
  5.  
  6.      Welcome to the world of TalkLink, a unique, new conferencing
  7.      service  offered  by  IBM. Using TalkLink, you can "talk" to
  8.      customers, IBMers  and  personnel  of  our  many  affiliates
  9.      around  the world - anywhere, anytime.  TalkLink is designed
  10.      for people like yourself, who want to get the  most  out  of
  11.      their  investment  in  computing  products  and  services.
  12.      TalkLink "links" you directly into the development and  sup-
  13.      port  communities of customers, IBM and affiliates. Our goal
  14.      is to help you be as effective as you  can  with  access  to
  15.      many conferences, vast databases and rich libraries.
  16.  
  17.      HIGHLIGHTS
  18.  
  19.      TalkLink  provides  the following capabilities for customers
  20.      to review information electronically, submit questions  re-
  21.      quests and receive answers  information.
  22.      -  Conferences and forums -- question and  answer  bulletin
  23.        boards  for  you to ask questions and help others with a
  24.        wide variety of products and services.  Items posted  on
  25.        this  bulletin  board  are shared between BBS users, IBM
  26.        personnel and affiliates worldwide.
  27.      -  Customer-to-customer messaging  --  customers  can  send
  28.        private messages to each other.
  29.      -  Support   --  customers  can submit or view problem re-
  30.        ports.  These entries  will  be  responded  to  by  the
  31.        conference/forum  owner,  normally within a certain time
  32.        period. Users can also place orders for product  related
  33.        materials.
  34.      -  Software  library  -- downloads application programs and
  35.        uploads contributions.
  36.      -  News and announcements --  contains  recent  information
  37.        regarding products and services.
  38.      -  Modes of operation:
  39.        -  Interactive  -- Users  are  connected  online  to
  40.          TalkLink while using its facilities.
  41.        -  Batch  -- Users can download  the  forums  to  their
  42.          personal  computer  and  read the entries  offline.
  43.          Users can also respond offline and the entries  will
  44.          be saved and sent to the host the next time the user
  45.          is  connected in batch mode.  Initially, this facil-
  46.          ity is available for  OS/2  (R)  users only.
  47.      -  Access:
  48.                                    1
  49.        -  Advantis -- local call from most cities  within  the
  50.          US.
  51.        -  Internet -- telnet avaialable now, full ftp soon.
  52.  
  53.      SEARCH SERVICE
  54.  
  55.      -  Search IBM databases via interactive mode -- This search
  56.        facility  includes  a large question and answer database
  57.        of items, IBM System  Center  Flashes,  and IBM's  prob-
  58.        lem  management libraries. This database contains infor-
  59.        mation  about  problems  and  fixes.  Not  all  general
  60.        discussion  forums have related information in these da-
  61.        tabases.
  62.  
  63.      TALKLINK FEES  CHARGES
  64.  
  65.      -  $15.00  Registration  Fee (one-time charge for each user
  66.        registration)
  67.      -  $18.00 Monthly Availability Charge  (includes  unlimited
  68.        hourly service)
  69.      -  This can be charged to a credit card or invoiced (for an
  70.        additional  administrative fee of $7.00 for each monthly
  71.        invoice).
  72.  
  73.      HOW TO ORDER TALKLINK
  74.  
  75.      Call 1-800-547-1283 to sign up for TalkLink.
  76.      Outside of the United States please contact your
  77.      local IBM sales office for availability and access.
  78. ********************************************************************** 
  79.  
  80.  
  81. ΓòÉΓòÉΓòÉ 2. Introduction ΓòÉΓòÉΓòÉ
  82.  
  83. ===== OS2WPS CFORUM created at 01:46:18 on 92/04/08 GMT (by HOPKINS at AUSVM8)
  84.               IBM UNCLASSIFIED
  85.               ------------
  86. The information in this forum is considered by IBM to be
  87.    external and may be shared by everyone who is given access.
  88.    This forum is shared with the internal IBM employee conferences.
  89.  
  90. Forum: OS2WPS CFORUM
  91.  
  92. Forum subject: OS/2 Version 2 Workplace Shell
  93.  
  94. This FORUM is provided as a conferencing tool to promote
  95.       the discussion of issues, questions, and problems pertaining
  96.       to OS/2 Version 2 Workplace Shell.
  97.  
  98. Contributions must not contain confidential or proprietary information.
  99.  
  100. The Material in this forum is shared with the internal IBM employee
  101. conferences.
  102.  
  103. The Material in this forum is considered by IBM to be proprietary and
  104. your use of it is subject to the following conditions.
  105.  
  106. IBM grants you a non exclusive, and paid-up right and license to use
  107. (internally only) any Material distributed to the TalkLink Conferencing
  108. Service.  You shall not reproduce, prepare derivative work based upon,
  109. or distribute (internally or externally), any Material distributed to
  110. the TalkLink Conferencing Service.
  111.  
  112. You grant to us a non exclusive, and paid-up right and license to (1)
  113. use, execute, display, reproduce, and prepare and have prepared
  114. derivative works based upon, and distribute (internally and externally)
  115. any Material you distribute to the TalkLink Conferencing Service and (2)
  116. authorize others to do any, some or all of the foregoing.
  117.  
  118. Contributions must not contain confidential or propriety information.
  119.  
  120. All subscribers are required to abide at all time by the conference rules
  121. described in the Bulletin Board Rules under "News and Announcements".
  122.  
  123. All IBM personnel are required to abide at all times by the IBMPC RULES
  124. and the IBM Business Conduct Guidelines.  IBM personnel will read the
  125. CUSTOMER FORUM RULES in IBMPC RULES before contributing.
  126.  
  127. Contributions violating these will be deleted by the CFORUM Owner or
  128. their delegate, and in some cases by an IBM conference Administrator.
  129.  
  130. The OS2BBS CFORUM is where anyone may raise concerns regarding rules
  131. violations found in this and other CFORUMS.
  132.  
  133. The IBM Administrator of this forum is:
  134.   Name:       Paul Cheatham
  135.   Mailing Address: Boca Electronic Support Team ( BEST )
  136.           1000 N.W. 51st Street
  137.           Internal Zip 1426-012/W2030
  138.           Boca Raton,  FL  33429
  139.   IBM Node/Userid: BCRVM1/CHEATHAM
  140.   TalkLink Userid: LNK9/LNK9030
  141.  
  142. See OS2WPS  931CFORU on OS2BBS  for appends to 92/12/02 (4463 lines)
  143.  See OS2WPS  932CFORU on OS2BBS  for appends to 93/04/08 (4566 lines)
  144.  See OS2WPS  933CFORU on OS2BBS  for appends to 93/06/29 (4572 lines)
  145.  See OS2WPS  934CFORU on OS2BBS  for appends to 93/08/09 (4451 lines)
  146.  See OS2WPS  935CFORU on OS2BBS  for appends to 93/10/19 (4650 lines)
  147.  See OS2WPS  941CFORU on OS2BBS  for appends to 93/11/19 (4450 lines)
  148. ..... 4450 lines pruned at 05:07:41 on 93/11/19 GMT (by OS2 at YKTVMV) .....
  149.  
  150. ..... 5102 lines pruned at 08:56:28 on 04/26/94 by MLKSERV0 for LNK9032
  151.  See OS2WPS AR942080 file for appends from 93/11/19 to 94/02/09
  152.  
  153. ********************************************************************** 
  154.  
  155.  
  156. ΓòÉΓòÉΓòÉ 3. Drag and Drop to Desktop Setting ΓòÉΓòÉΓòÉ
  157.  
  158. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  159. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  160.  
  161. When I D&D my OS/2 windowed session icon and my DOS windowed
  162. session to the "Actions on menu: Primary pop-up menu" in the Menu
  163. tab of the Desktop Settings, I experience a problem.
  164.  
  165. I have an ?:\AUTOEXEC.CMD file and my CONFIG.SYS contains
  166.  
  167.   SET OS2_SHELL=D:\OS2\CMD.EXE /k d:\AUTOEXEC.CMD
  168.  
  169. When I launch either a full screen or windowed OS/2 session from
  170. its respective icon, the AUTOEXEC.CMD file is executed first, as
  171. I would expect. However, if I D&D this same icon onto the Desktop
  172. Menu Settings, the OS/2 windowed session is launched but the
  173. AUTOEXEC.CMD is ignored.
  174.  
  175. If I use "Create another' to add an OS/2 windowed session to the
  176. menu settings, using a program name of d:\AUTOEXEC.CMD, the
  177. session starts and ends (i.e. no /k option). Adding any value
  178. beyond the name is rejected as an invalid name (i.e. parameters
  179. don't seem to be allowed).
  180.  
  181. Anyone have any thoughts?
  182.  
  183. Dick Goran - CIS 72200,347
  184. author "REXX Reference Summary Handbook"
  185. ********************************************************************** 
  186.  
  187.  
  188. ΓòÉΓòÉΓòÉ 4. wpInsertPopupMenuItems troubles ΓòÉΓòÉΓòÉ
  189.  
  190. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  191. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  192.  
  193. Now that the lan programming is in remission I thought I'd try my hand at
  194. WPS programming.  Things went fine for a while, but I've hit a snag.  Please
  195. review this problem and give me any hints you might have:
  196.  
  197. _wpInsertPopupMenuItems(somSelf, hwndMenu, iPosition, hmod, ID_MENU,
  198.    WPMENUID_PRIMARY);
  199. The above method is being called in my wpModifyPopupMenu and failing with rc=0.
  200.  
  201. Trials:
  202.  1.  iPosition is as passed to my modify method.  Have tried 0 in this field.
  203.    Have tried calling parent method before/after.  No dice.
  204.  2.  hmod is a class instance variable that is also used in a query icon
  205.    routine.  I have also verified this value through IPMD.
  206.  3.  ID_MENU is in my resource file.  Resource compile goes without a hitch
  207.    as does my addition of the .res to the .dll.
  208.  4.  WPMENUID_PRIMARY has also been tried with a constant "0".
  209.  
  210. This is a WPFolder subclass.  I'm using CSet++ 2.01 with the 2.1 toolkit.
  211. I didn't have that much hair to start with and I have less now.  Please
  212. help me before my brother starts calling my "baldy"!
  213.  
  214. Joe R Wyatt  USAA, San Antonio, Tx
  215. ********************************************************************** 
  216.  
  217. > 4.  WPMENUID_PRIMARY has also been tried with a constant "0".
  218.  
  219. What is WPMENUID_PRIMARY? I've managed to add menu items by using
  220. values like WPMENUID_OPEN, WPMENUID_HELP, etc. and varying the
  221. iPosition.
  222.  
  223. Gregory Czaja, Lexington 8-545-4977  GregC at LEXGate 1994/02/09  12:11
  224. ********************************************************************** 
  225.  
  226. It's my understanding that, while WPMENUID_OPEN and WPMENUID_HELP allow
  227. access to the submenu items of these major topics, the WPMENUID_PRIMARY
  228. entry allows the addition of the major topics.  I may be wrong here. I'm
  229. wrong somewhere.  That's for sure!
  230.  
  231. Joe R Wyatt  USAA, San Antonio, Tx
  232. ********************************************************************** 
  233.  
  234. Yes, you are right about the WPMENUID_OPEN & Co.
  235.  
  236. I think, there was(is?) a bug in WPS which prevents new menu items
  237. from being inserted any other place than at the bottom of the current
  238. menu, i.e. you have to specify the 0 and use the current iPosition.
  239.  
  240. Example:  _wpInsertPopupMenuItems(somSelf, hwndMenu, iPosition,
  241.                   MyQueryModuleHandle(),
  242.                   MY_CLOSE_MENU,
  243.                   0);
  244. Adds a menu item (as the last one) to the main context menu.
  245.  
  246. Gregory Czaja, Lexington 8-545-4977  GregC at LEXGate 1994/02/09  12:39
  247. ********************************************************************** 
  248.  
  249. I've called it with the iPosition passed in (which is pretty much
  250. ignored anyway) and using WPMENUID_PRIMARY with no problems at all.
  251. Try putting a WinLoadMenu before it just to see if the menu is indeed
  252. in the hmod.
  253.  
  254. --Mindy
  255. ********************************************************************** 
  256.  
  257. [Reference to append at 17:37 on 94/02/09 by GREGC at LEXVM2 ] 
  258.  
  259. That's the way I thought it was supposed to work.  I have not been successful
  260. at creating any additions to the context menu yet, though.  I'm really stuck
  261. on this one.  Looks simple enough, but the desired result eludes me.  Any
  262. further ideas?
  263.  
  264. Joe R Wyatt  USAA, San Antonio, Tx
  265. ********************************************************************** 
  266.  
  267. [Reference to append at 18:08 on 94/02/09 by S6GHGMJP at HOUVMSCC ] 
  268.  
  269. I'll give it a shot, Mindy, and let you know.
  270.  
  271. Joe R Wyatt  USAA, San Antonio, Tx
  272. ********************************************************************** 
  273.  
  274. [Reference to append at 18:08 on 94/02/09 by RATE052 at OS2CUST ] 
  275.  
  276. Except the other things mentioned by Mindy (hMod and the menu correctly
  277. bound to the DLL), you may want to check the ID itself - I burn myself
  278. quite often specifying the item ID instead of the menu ID...
  279.  
  280. Gregory Czaja, Lexington 8-545-4977  GregC at LEXGate 1994/02/09  15:10
  281. ********************************************************************** 
  282.  
  283. WinLoadMenu comes up with rc=0.  Which, I assume, means the menu is not in
  284. the dll.  How can my icon, which is defined in the same .rc file as the menu,
  285. be in the dll with out the menu?
  286.  
  287. Joe R Wyatt  USAA, San Antonio, Tx
  288. ********************************************************************** 
  289.  
  290. The stupid ResourceCompiler can do that. Did you include the proper
  291. header files? Since you are using WPMENUID... you need wpobject.h, too.
  292. RC won't even complain - it will just ignore the menus.
  293.  
  294. Gregory Czaja, Lexington 8-545-4977  GregC at LEXGate 1994/02/10  09:34
  295. ********************************************************************** 
  296.  
  297. Gregory, you have made me a happy kind of guy.  This is not a problem that I
  298. would have found for quite a while.  I had included a set of os/2 headers
  299. thinking that wpobject.h would get included on down the line somewhere.
  300. Thanks to you and Mindy, I can now sleep at night again.
  301.  
  302. Joe R Wyatt  USAA, San Antonio, Tx
  303. ********************************************************************** 
  304.  
  305. Anytime, just post a message every time you want to sleep at night !-)
  306.  
  307. Gregory Czaja, Lexington 8-545-4977  GregC at LEXGate 1994/02/10  14:43
  308. ********************************************************************** 
  309.  
  310.  
  311. ΓòÉΓòÉΓòÉ 5. Creating desktop objects ΓòÉΓòÉΓòÉ
  312.  
  313. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  314. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  315.  
  316. I want to create an icon for EACH *.INF file in a set of directories,
  317. and add them to MANUALS folder. How can I do that easily and speedy?
  318.  
  319. Dario de Judicibus * The Reuse Shop * Quality Programs * Rome NS Lab (I)
  320. ----------------------------------------
  321. Voice     : (+39.6) 596.62531   *  FAX   : (+39.6) 596.62872
  322. IBM VNET   : DEJUDICI at ROMEPPC  *  IBMMAIL : ITIBM98W
  323. Internet   : ddj@vnet.ibm.com   *  Bitnet  : ddj at vnet
  324. ********************************************************************** 
  325.  
  326. To: Dario de Judicibus * The Reuse Shop
  327.  
  328.    > I want to create an icon for EACH *.INF file in a set <
  329.    > of directories, and add them to MANUALS folder. How  <
  330.    > can I do that easily and speedy?            <
  331.  
  332. Do you really mean "create" an icon or are you referring to
  333. associating an icon to each directory?
  334.  
  335. If the latter, then you can do it with a simple REXX program:
  336.  
  337.    /* TEST88.CMD - Assign an icon to .INF files */
  338.    icon_file = '...' /* fill in name */
  339.  
  340.    /*---------------------------*/
  341.    /* Build table of .INF files */
  342.    /*---------------------------*/
  343.    Call SysFileTree '?:\..\*.inf', stem, 'F' /* fill in name */
  344.    if stem.0 ╨║> 1 then
  345.     do
  346.       say 'Unable to locate .INF files'
  347.       exit
  348.     end
  349.  
  350.    do i = 1 to stem.0
  351.     parse var stem.i file_date,
  352.              file_time,
  353.              file_size,
  354.              file_attr,
  355.              file_name
  356.     file_name = STRIP(file_name)
  357.  
  358.     call SysSetIcon file_name, icon_file
  359.    end
  360.    exit
  361.  
  362. Dick Goran - CIS 72200,347
  363. author "REXX Reference Summary Handbook"
  364. ********************************************************************** 
  365.  
  366. No, what I want to do is different. I want to create a folder on my
  367. desktop which contains a SHADOW of any INF file in my system, wherever
  368. they are located. I will call that folder MANUALS. I need an automated
  369. procedure to do that. I'm quite good in CMS REXX, but not really expert
  370. of OS/2 REXX. Is there a way (1) to locate all INF files in all volumes,
  371. and (2) to create a shadow of each file in a previously created folder?
  372.  
  373. Dario de Judicibus * The Reuse Shop * Quality Programs * Rome NS Lab (I)
  374. ----------------------------------------
  375. Voice     : (+39.6) 596.62531   *  FAX   : (+39.6) 596.62872
  376. IBM VNET   : DEJUDICI at ROMEPPC  *  IBMMAIL : ITIBM98W
  377. Internet   : ddj@vnet.ibm.com   *  Bitnet  : ddj at vnet
  378. ********************************************************************** 
  379.  
  380. Not exactly, but pretty close (creating a folder with all VIEW objects
  381. for all your INF files; folder name "All IPF's"):
  382.  
  383.  request creinfs from leshek at lexvm2
  384.  
  385. Leshek Fiedorowicz (CIS#74170,2007)
  386. ********************************************************************** 
  387.  
  388. [Reference to append at 08:26 on 94/02/10 by DEJUDICI at ROMEPPC ] 
  389.  
  390. To: Dario de Judicibus
  391.  
  392.    > Is there a way (1) to locate all INF files in all   <
  393.    > volumes, and (2) to create a shadow of each file in a <
  394.    > previously created folder?               <
  395.  
  396. 1) Use SysDriveMap() to provide a list of the drives and then use
  397. SysFileTree( drive ΓòæΓòæ '*.INF', stem, 'FS' ) for each appropriate
  398. drive to obtain a list of the .INF files.
  399.  
  400. 2) I will assume that the folder already exists on the Desktop and has
  401. an OBJECTID of <MANUALS>. For each new .INF file, you can use the
  402. following:
  403.  
  404.   inf_full_path_name = '...'
  405.  
  406.   location = '<MANUALS>'
  407.   class   = 'WPShadow'
  408.   title   = FILESPEC( 'N', inf_full_path_name ) ΓòæΓòæ '0A'x ΓòæΓòæ 'Manual'
  409.   setup   =,
  410.        'OBJECTID=<' ΓòæΓòæ title ΓòæΓòæ '>;'       ΓòæΓòæ,
  411.        'SHADOWID='  ΓòæΓòæ inf_full_path_name ΓòæΓòæ ';' ΓòæΓòæ,
  412.        ''
  413.   call SysCreateObject class, title, location, setup, 'REPLACE'
  414.  
  415. Hope this is enough to get you started.
  416.  
  417. Dick Goran - CIS 72200,347
  418. author "REXX Reference Summary Handbook"
  419. ********************************************************************** 
  420.  
  421. Yes, thank you.
  422.  
  423. Dario de Judicibus * The Reuse Shop * Quality Programs * Rome NS Lab (I)
  424. ********************************************************************** 
  425.  
  426. [Reference to append at 02:05 on 94/02/11 by DEV4672 at HONE82 ] 
  427.  
  428. Dick
  429.  
  430.    How about opening the .INF and putting the 40 odd bytes starting at 6B
  431. into the title? Shoot a version check and a translate should get rid of the
  432. IPF version change and non display title problems. I remember a MAKEBOOK.CMD
  433. that did most of this but used a table to put titles on the objects. Never
  434. did understand that.
  435.  
  436. E Ilsley
  437. ********************************************************************** 
  438.  
  439. To: E Ilsley - Append created on 94/02/14 at 15:13 PST
  440.  
  441.    > How about opening the .INF and putting the 40 odd   <
  442.    > bytes starting at 6B into the title? Shoot a version  <
  443.    > check and a translate should get rid of the IPF    <
  444.    > version change and non display title problems.     <
  445.  
  446. Subject to the displacement dependency, it would work. The VERIFY()
  447. function would be the way of finding the end od the printable string.
  448.  
  449. Dick Goran - CIS 72200,347
  450. author "REXX Reference Summary Handbook"
  451. ********************************************************************** 
  452.  
  453.  
  454. ΓòÉΓòÉΓòÉ 6. Unaccepted Appends - Again ΓòÉΓòÉΓòÉ
  455.  
  456. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  457. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  458.  
  459. To: Hank Henderson
  460.  
  461. Below are the append headers and Notes I received back from TOOLSRUN
  462. about them not being accepted. These 3 appends were uploaded via
  463. FORAUP amongst a a group of 12. Only these 3 kicked back.
  464.  
  465. This is the same problem I have seen before. The reported reference
  466. time does not match the reference time in the append I was trying to
  467. upload.
  468.  
  469. Note that the append in FREESHAR CFORUM was a message to you. <g>
  470.  
  471. Dick Goran - CIS 72200,347
  472. author "REXX Reference Summary Handbook"
  473.  
  474. ****************************************
  475.  
  476. Subject: INI cleanup
  477. Ref: Append at 17:53:05 on 94/02/10 GMT (by TBCNJBM at OS2CUST)
  478.  
  479.  V01                  Note
  480. From: OS2   --HONE80            Date and time   02/10/94 15:28:42
  481. ========================================
  482. Date: 10 Feb 1994, 23:28:01 GMT
  483. From: TOOLSRUN 6.7 (level 1)             OS2    at HONE80
  484. To:  DEV4672 at HONE82
  485.  
  486. OS2BBS: There is no append in OS2PRG CFORUM at 04:12:03 on 94/02/10 GMT
  487.     to modify. (Request returned.)
  488.               E N D  O F  N O T E
  489.  
  490. ****************************************
  491.  
  492. Subject: Welcome
  493. Ref: Append at 17:57:35 on 94/02/10 GMT (by LNK1SM7 at HONE82)
  494.  
  495.  V01                  Note
  496. From: OS2   --HONE80            Date and time   02/10/94 15:28:11
  497. ========================================
  498. Date: 10 Feb 1994, 23:27:31 GMT
  499. From: TOOLSRUN 6.7 (level 1)             OS2    at HONE80
  500. To:  DEV4672 at HONE82
  501.  
  502. OS2BBS: There is no append in FREESHAR CFORUM at 04:12:03 on 94/02/10 GMT
  503.     to modify. (Request returned.)
  504.               E N D  O F  N O T E
  505.  
  506. ****************************************
  507.  
  508. Subject: Creating desktop objects
  509. Ref: Append at 08:56:26 on 94/02/10 GMT (by DEJUDICI at ROMEPPC)
  510.  
  511.  V01                  Note
  512. From: OS2   --HONE80            Date and time   02/10/94 15:27:44
  513. ========================================
  514. Date: 10 Feb 1994, 23:27:03 GMT
  515. From: TOOLSRUN 6.7 (level 1)             OS2    at HONE80
  516. To:  DEV4672 at HONE82
  517.  
  518. OS2BBS: There is no append in OS2WPS CFORUM at 04:12:03 on 94/02/10 GMT
  519.     to modify. (Request returned.)
  520.               E N D  O F  N O T E
  521.  
  522. ****************************************
  523. ********************************************************************** 
  524.  
  525.  
  526. ΓòÉΓòÉΓòÉ 7. Minimized Icon Viewer ΓòÉΓòÉΓòÉ
  527.  
  528. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  529. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  530.  
  531. Every time I startup my machine the 'Minimized Icon Viewer' is open
  532. and I would like to avoid it.
  533. I checked my config.sys and my startup folder and everything seems to
  534. be fine. I suppose that there is an info stored somewhere in the
  535. OS2(SYS).INI file (I installed on this machine a lot of beta ..)
  536. but I can't find where ...
  537. Can somebody help me ?
  538. Thanks in advance.
  539. Paolo Brizzi
  540. ********************************************************************** 
  541.  
  542. I assume you mean you don't want it to open when you boot.  If you
  543. close the minimized window viewer before shutting down and it is
  544. not in your startup folder, it could be a problem with your
  545. ini file not getting written to.  goto the os2 directory and type
  546. attrib os*
  547. make sure there is a file called os2.!!!.  If not, take the readonly
  548. bit off os2.ini and reboot.  Close the minimized window viewer,
  549. shutdown and reboot again.  See if that fixes it.
  550.  
  551. If the .!!! file WAS there, I can't think of why the viewer
  552. would keep opening.  Unless it's in your startup folder and you
  553. just don't see it.
  554.  
  555. --Mindy
  556. ********************************************************************** 
  557.  
  558.  
  559. ΓòÉΓòÉΓòÉ 8. Lost contents of OS/2 System Folders ΓòÉΓòÉΓòÉ
  560.  
  561. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  562. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  563.  
  564. Help,
  565.  
  566.  I don't know how it happened, but on a friends workstation (not mine, really)
  567. they lost the contents of all the folders inside of the OS/2 System icon.
  568. The icon is there and when you open it you see the folders but when you open
  569. the folders (ie. Productivity, Command Prompts etc..) they open up empty.
  570. I've tried running RECREATE.CMD, no luck. Does anyone have any ideas?
  571.  
  572. Tim Aldieri -  The Travelers, Hartford, CT
  573. ********************************************************************** 
  574.  
  575. Try Recreate.CMD again. But before doing so, use any editor to modify
  576. line 27 (or 26, depending on version). The current contents of it is:
  577.  
  578.   If SysCreateObject(object,title,location,setup,'Update') = 0
  579.  
  580. change it to:
  581.  
  582.   If SysCreateObject(object,title,location,setup,'Replace') = 0
  583.  
  584. Remember to change it back to 'Update' once you finished. And be
  585. careful, accidentally, not to recreate your Desktop !-)
  586.  
  587. Gregory Czaja, Lexington 8-545-4977  GregC at LEXGate 1994/02/16  08:25
  588. ********************************************************************** 
  589.  
  590.  >  Try Recreate.CMD again. But before doing so, use any editor to modify
  591.  >  line 27 (or 26, depending on version). The current contents of it is:
  592.  >
  593.  >    If SysCreateObject(object,title,location,setup,'Update') = 0
  594.  >
  595.  >  change it to:
  596.  >
  597.  >    If SysCreateObject(object,title,location,setup,'Replace') = 0
  598.  >
  599.  >  Remember to change it back to 'Update' once you finished. And be
  600.  >  careful, accidentally, not to recreate your Desktop !-)
  601.  >
  602.  >  Gregory Czaja, Lexington 8-545-4977  GregC at LEXGate 1994/02/16  08:25
  603.  
  604. Thanks,  It worked like a charm. It was much appreciated.  8-}.
  605.  
  606. Tim Aldieri -  The Travelers, Hartford, CT
  607. ********************************************************************** 
  608.  
  609.  
  610. ΓòÉΓòÉΓòÉ 9. How to recover hidden folders? ΓòÉΓòÉΓòÉ
  611.  
  612. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  613. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  614.  
  615. When a folder is marked 'Hidden' in Drives, it disappears from display!
  616. There is now way to get it back, or to 'unhide' it...
  617. It seems like a bug or something was missed in OS/2?
  618.  
  619. Francis.
  620. ********************************************************************** 
  621.  
  622. Open the setting of the drive it is contained in and go to the
  623. include page.  If you delete the entry there, the hidden folders
  624. should appear.  Or add an entry to include hidden files.
  625.  
  626. --Mindy
  627. ********************************************************************** 
  628.  
  629.  
  630. ΓòÉΓòÉΓòÉ 10. Sizing a folder with REXX ΓòÉΓòÉΓòÉ
  631.  
  632. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  633. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  634.  
  635. Is it possible to create a folder using REXX and
  636. specifying the folder's size and position? We would
  637. also like the REXX program to open the folder minimized
  638. if that is possible.  Thanks.
  639.  
  640. Pat Malneritch, Delta Air Lines
  641. ********************************************************************** 
  642.  
  643. To: Pat Malneritch, Delta Air Lines - Append created on 94/02/17 at 09:44 PST
  644.  
  645.    > Is it possible to create a folder using REXX and    <
  646.    > specifying the folder's size and position? We would  <
  647.    > also like the REXX program to open the folder     <
  648.    > minimized if that is possible.             <
  649.  
  650. Yes. Starter info for doing this is contained in a file by Mike Lamb
  651. of IBM Yorktown that he released quite a while ago. It is generally
  652. found on BBSs as CRTOBJ.ZIP.
  653.  
  654. The only place that all of this info is defined is in the second
  655. edition of our HAndbook due out next month. Details of its
  656. availability will be posted here in the OS2REXX CFORUM and in the
  657. TOOLS section of the Software Library.
  658.  
  659. Here is an example to get you started. It presumes that REXXUTIL has
  660. been registered.
  661.  
  662. /* Create WPFolder & WPProgram objects */
  663.  
  664. /*------------------------------------------------------------------------*/
  665. /*                                     */
  666. /*               WPFolder Object               */
  667. /*                                     */
  668. /*------------------------------------------------------------------------*/
  669. wpf_class     = 'WPFolder'
  670. wpf_location   = '<WP_DESKTOP>'
  671. wpf_object_id   = '<TESTFOLD>'
  672. wpf_title     = 'TEST FOLDER'
  673. wpf_setup_string = ,
  674.   'OBJECTID=' ΓòæΓòæ wpf_object_id ΓòæΓòæ ';'         ΓòæΓòæ,
  675.   'title=Test'                     ΓòæΓòæ,
  676.      '0A'x                     ΓòæΓòæ,
  677.      'Folder'                   ΓòæΓòæ,
  678.      '0A'x                     ΓòæΓòæ,
  679.      'Object;'                   ΓòæΓòæ,
  680.   'iconpos=30,90;'                   ΓòæΓòæ,
  681.   'iconviewpos=01,10,50,80;'              ΓòæΓòæ,
  682.   'detailsview=MINI;'                 ΓòæΓòæ,
  683.   ''
  684.  
  685. call SysCreateObject wpf_class,,
  686.            wpf_title,,
  687.            wpf_location,,
  688.            wpf_setup_string,,
  689.            'FAIL'
  690. if RESULT = 1 then
  691.   do
  692.    say wpf_title 'was successfully created'
  693.   end
  694. else
  695.   do
  696.    say wpf_title 'was not created, return code = '  ΓòæΓòæ,
  697.      RESULT
  698.    say wpf_setup_string
  699.    exit
  700.   end
  701.  
  702. /*------------------------------------------------------------------------*/
  703. /*                                     */
  704. /*               WPProgram Object               */
  705. /*                                     */
  706. /*------------------------------------------------------------------------*/
  707. wpp_class     = 'WPProgram'
  708. wpp_location   = '<WP_DESKTOP>'
  709. wpp_object_id   = '<TESTPROG>'
  710. wpp_title     = 'TEST^PROGRAM'
  711. wpp_setup_string = ,
  712.   'OBJECTID=' ΓòæΓòæ wpp_object_id ΓòæΓòæ ';'         ΓòæΓòæ,
  713.   'ICONPOS=40 90;'                   ΓòæΓòæ,
  714.   'ICONFILE=...;'                   ΓòæΓòæ,
  715.   'EXENAME=...;'                    ΓòæΓòæ,
  716.   'PROGTYPE=...;'                   ΓòæΓòæ,
  717.   ''
  718.  
  719. call SysCreateObject wpp_class,,
  720.            wpp_title,,
  721.            wpp_location,,
  722.            wpp_setup_string,,
  723.            option
  724. if RESULT = 1 then
  725.   do
  726.    say wpp_title 'was successfully created'
  727.   end
  728. else
  729.   do
  730.    say wpp_title 'was not created, return code = '  ΓòæΓòæ,
  731.      RESULT
  732.    say wpp_setup_string
  733.    exit
  734.   end
  735.  
  736. Dick Goran - CIS 72200,347
  737. author "REXX Reference Summary Handbook"
  738. ********************************************************************** 
  739.  
  740. Thanks, Dick!  We'll be sure to be ordering you handbook
  741. when it's available!!
  742.  
  743. Pat Malneritch, Delta Air Lines
  744. ********************************************************************** 
  745.  
  746.  
  747. ΓòÉΓòÉΓòÉ 11. Results Folder Created  (HOB AT AUSVM8) ΓòÉΓòÉΓòÉ
  748.  
  749. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  750. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  751.  
  752. APNDMOVEd: From OS2BBS CFORUM
  753.  
  754. A Results Folder was created and contains such icons as the DOS Window
  755. and DOS Full Screen among many, many others.   Some of these icons do
  756. not show up on the Workplace Shell.   Therefore, I must go into this
  757. Results Folder to execute them.   Please give me the STEPS to go thru
  758. to get rid of the Results Folder and get these icons back on the Work-
  759. place Shell so that they are there when I boot up OS/2, Version 2.1.  I
  760. have been told that I can delete the Results Folder.  If I do this I
  761. do not know how to get these icons back.  What is the simplest thing
  762. I can do?   I am a first time user of OS2BBS.  Thanks. Bud Bradford,
  763. HOB @ AUSVM8.
  764. ********************************************************************** 
  765.  
  766. Open the results folder, highlight all the icons you want to be on the
  767. desktop, drag and drop the objects to the desktop ...
  768.  
  769. Keith A. Blake  (The OS/2 Mole) V: (513) 983-8119 (USPGC9GC/IBMMAIL)
  770. ********************************************************************** 
  771.  
  772.  
  773. ΓòÉΓòÉΓòÉ 12. Results Folder Plus a New Question for You or Anyone Else ΓòÉΓòÉΓòÉ
  774.  
  775. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  776. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  777.  
  778. Mr. Keith A. Blake (OS2 Expert),
  779.  
  780. Thanks a lot for your help.   I will try what you suggested.
  781. I have another question that is in OS2HELP (I believe).  I
  782. go into more detail there, but the basic question is what is
  783. the LEAST COST, FASTEST WAY to develop a GUI for a major PC
  784. application that is written in FORTRAN (85%), C (15%) and uses
  785. about 150 panels/screens that were developed by me using IBM's
  786. EZ-VU development facility (it's like ISPF for the mainframe).
  787. I have some information on Application Manager and EASEL.  Could
  788. REXX (VX-REXX) be used for this?   I am using WATCOM's FORTRAN
  789. compiler, Version 9.5 for the FORTRAN and Borland's C and C++
  790. compiler.  I know that it would help if all of the code were in
  791. FORTRAN, but this is an application that I started working on before
  792. there was a C language.  If I could create a good-looking GUI that
  793. allowed me to use my FORTRAN code that would help a great deal.  I
  794. already have lots of years in this application and I'm working on
  795. the whole thing by myself in the evenings and on weekends.  Thanks
  796. to you Keith or anyone else who can help me.   I would like to have
  797. some options to choose from relative to time vs. cost and so forth
  798. (if that's not asking too much!).
  799.  
  800.                H. O. (Bud) Bradford
  801.                Austin, Texas
  802.  
  803.                HOB AT AUSVM8  or
  804.                T/L 793-8094  or
  805.                512-823-8094  or
  806.                512-459-8999  or
  807.                512-459-8999 (FAX)
  808.  
  809.               ########
  810. ********************************************************************** 
  811.  
  812. Bud,
  813.   Thanks for the complement, unfortunately (for me) my area of
  814. "expertise" does not extend to application/programming development.
  815. There is a PM specific programming conference that you may try your
  816. question in as well and there is a generic rexx conf and I believe
  817. VX-REXX has a specific cforum as well. There are several more programming
  818. cforums as well and I'm sure you'll get good answers if you post in
  819. them as well.
  820.  
  821. Keith A. Blake  (The OS/2 Mole) V: (513) 983-8119 (USPGC9GC/IBMMAIL)
  822. ********************************************************************** 
  823.  
  824.  
  825. ΓòÉΓòÉΓòÉ 13. How do I remove an available type ? ΓòÉΓòÉΓòÉ
  826.  
  827. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  828. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  829.  
  830. Somehow I accidentally added a new available type to
  831. my OS/2 system. How can I remove it? When I
  832. open the setttings/Association notebook, it is in
  833. my available type list as "*.ATL". Where
  834. are these stored?
  835.  
  836. I think I added it by misusing the PROGREF program?
  837.  
  838. Marvin Lichtenthal
  839. Emeryville, Ca.
  840. marvinl@netcom.com
  841. ********************************************************************** 
  842.  
  843. To: Marvin Lichtenthal - Append created on 94/02/21 at 20:51 PST
  844.  
  845.    > Where are these stored?                <
  846.  
  847. There are association entries stored in OS2.INI but I'm not sure how
  848. the data is setup. Grab a copy of LISTINI.ZIp from the Software
  849. Library here and it will produce a text file of your .INIs that you
  850. can look at.
  851.  
  852. Dick Goran - CIS 72200,347
  853. author "REXX Reference Summary Handbook"
  854. ********************************************************************** 
  855.  
  856.  
  857. ΓòÉΓòÉΓòÉ 14. Restoring Icons to Workplace from Results Folder ΓòÉΓòÉΓòÉ
  858.  
  859. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  860. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  861.  
  862. Keith,
  863.  
  864.   I wasn't able to bring the icons from the Results folder to
  865. the Workplace.  I did "highlight" the icon in the Results folder.
  866. I tried to bring it out, but it didn't show up on the Workplace.
  867.  
  868.   Thanks for your ideas on the various conferences related to
  869. converting my OS2/DOS application to a GUI under OS/2.
  870.  
  871.   I will look into them.  Thanks.
  872.  
  873.                   Bud Bradford
  874.                   Austin, Texas
  875.                   T/L 793-8094
  876.                   HOB AT AUSVM8
  877.                   512-823-8094
  878. ********************************************************************** 
  879.  
  880.  
  881. ΓòÉΓòÉΓòÉ 15. Help: Calling an object's class functions ΓòÉΓòÉΓòÉ
  882.  
  883. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  884. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  885.  
  886. This APPEND was deleted at 02:33:42 on 02/23/94 EST.
  887. ********************************************************************** 
  888.  
  889.  
  890. ΓòÉΓòÉΓòÉ 16. Limitation of the Network Printer Object ΓòÉΓòÉΓòÉ
  891.  
  892. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  893. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  894.  
  895. When you create a network printer object on your desktop, you have the
  896. opportunity connect that network printer object to a logical port.  But
  897. just one logical port.  The fact that you can net use multiple lpt ports
  898. (or capture, for the Netware users) to a single network queue is not
  899. reflected in the way the desktop network printer object works.
  900.  
  901. And if you create a second network printer object on your desktop and
  902. connect it to the same network queue, it acts like a shadow as far as the
  903. lpt port assignment goes.  If you change ports on one of your network
  904. printer objects, the other one gets its port changed also.
  905.  
  906. If this is not the case, I'd like to know.  But it looks to me like
  907. the the WPS is trying to force a one-to-one relationship on to something
  908. that is naturally a many to one function.  This should be fixed.
  909.  
  910. Also, under Netware at least, you can have two queues with the same name,
  911. but on different servers, and the WPS objects will force the port assignments
  912. to be the same.
  913.  
  914. There is a workaround.. have multiple queues on the server pointing at the
  915. same printers.  But this solution adds needless  complexity.
  916.  
  917. Matt Hickman  Internet: bhic@chevron.com   (713) 754-2389
  918. ********************************************************************** 
  919.  
  920.  
  921. ΓòÉΓòÉΓòÉ 17. Replacing WPS dlls ΓòÉΓòÉΓòÉ
  922.  
  923. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  924. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  925.  
  926. I create a new WPS class called TRHfolder, I register it and create an instance
  927.  now I deregister it but the WPS still has the dll loaded how do I get WPS to
  928. release it?
  929.  
  930. Terry Humphries PDA Inc. (913) 469-8700 ( Team OS/2 )
  931. ********************************************************************** 
  932.  
  933. You often have to wait 90 seconds.  You can change this by putting:
  934.  set objectsnoozetime=0
  935. into your config.sys.
  936.  
  937. OS/2 does seem to have a bug that is doesn't always release dll's,
  938. but waiting usually works for me.
  939.  
  940. -Gary Kushner
  941. ********************************************************************** 
  942.  
  943.  
  944. ΓòÉΓòÉΓòÉ 18. Associating programs with data objects ΓòÉΓòÉΓòÉ
  945.  
  946. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  947. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  948.  
  949. After receiving faster hardware and installing 2.1 (csd xr02110), I decided
  950. to try some of the GUI features that I had been blissfully ignoring since
  951. the 1.x days.  My system does not want to let me associate programs with
  952. data objects.  When I do an open-settings-association on the system
  953. editor or enhanced editor, and then add or remove objects, as soon
  954. as I close the settings window, the associations vanish.  Reopening
  955. settings confirms this, as does opening up the data objects.
  956.  
  957. This is not a problem on my neighbor's system.  Can anyone suggest
  958. a solution or area of investigation?
  959. ********************************************************************** 
  960.  
  961.  
  962. ΓòÉΓòÉΓòÉ 19. wps + iclui ΓòÉΓòÉΓòÉ
  963.  
  964. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  965. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  966.  
  967. Hi,
  968.  
  969. I do not know if you have found an answer yet, but I am doing something
  970. similar and noticed something which may be a problem (maybe not?).
  971.  
  972. I noticed that lc32tstM_wpclsInitData() initializes a pointer of type
  973. IPointerHandle and that lc32tstM_wpclsQueryIcon() returns this,
  974. but it is suppose to return HPOINTER.  I have used the Value() operator
  975. myself to ensure that I return an HPOINTER.  (I think this may be
  976. necessary because the compiler will complain if to try to use
  977. IPointerHandle in a routine which takes HPOINTER as a parameter;
  978. i.e., I do not believe an implicit type cast is done for you).
  979.  
  980. Try the following, instead of returning IPointerHandle:
  981.    return(_hIconThisClass->IHandle::operator Value());
  982.  
  983. Hope this helps.
  984. ********************************************************************** 
  985.  
  986.  
  987. ΓòÉΓòÉΓòÉ 20. Lockup Over Maximized Window ΓòÉΓòÉΓòÉ
  988.  
  989. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  990. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  991.  
  992. Is there a way to bring up the destop settings pull-down (the one you
  993. normally get by clicking the right mouse button on the desktop) when
  994. there is a maximized window in the forground that takes up the whole
  995. screen?  I would like to leave a maximized PMGLOBE on my screen and use
  996. the lockup function when I am away from my PC.
  997.  
  998. Jim Williams
  999. ********************************************************************** 
  1000.  
  1001. Open your desktop settings, select Lockup, go to page 2,
  1002. select "Partial Screen". After you lockup, drag the message box off the
  1003. bottom of the screen so it doesn't obscure the globe.
  1004.  
  1005. Don Hills   IBM New Zealand
  1006. ********************************************************************** 
  1007.  
  1008. Thanks, but I already have my lockup as a partial window so that is not
  1009. my problem.  My problem is that after I maximize PMGLOBE (which now
  1010. takes up the entire screen) there is no piece of desktop showing to
  1011. click my right mouse button on. So, how do I get to the desktop
  1012. settings to do the lockup?
  1013.  
  1014. Jim Williams
  1015. ********************************************************************** 
  1016.  
  1017. | My turn to be embarrassed- corrected key. Thanks, Jim.
  1018.  
  1019. Is this a trick question? :-)
  1020.  
  1021. ALT-SHIFT-TAB  (selects desktop)
  1022. CTRL-Backslash  (de-selects any selected objects)
  1023. SHIFT-F10    (pops up the desktop menu)
  1024. L        (selects lockup)
  1025.  
  1026. This is in the OS/2 "Using the OS" manual, on page 41.
  1027.  
  1028. Don Hills   IBM New Zealand
  1029. ********************************************************************** 
  1030.  
  1031. Thanks, I suppose I should read the manual he said embarrassedly. :-)
  1032. However, your second step should read:
  1033.  
  1034. CTRL-BACKSLASH
  1035.  
  1036. instead of:
  1037.  
  1038. CTRL-BACKSPACE
  1039.  
  1040. Jim Williams
  1041. ********************************************************************** 
  1042.  
  1043. Thanks for the correction- I've been behind the 8-ball all week and
  1044. it's only Wednseday. I've read the manual, and the book "OS/2 Unleashed".
  1045. I guess that makes me weird...
  1046.  
  1047. Don Hills   IBM New Zealand
  1048. ********************************************************************** 
  1049.  
  1050.  
  1051. ΓòÉΓòÉΓòÉ 21. PM into the WPS ΓòÉΓòÉΓòÉ
  1052.  
  1053. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1054. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1055.  
  1056.  (no text entered)
  1057.  
  1058. Andy Mendelsohn
  1059. ********************************************************************** 
  1060.  
  1061. I would like to incorporate PM elements into the folder class.  Specifically,
  1062. I would like to add a Pushbutton element that would be associated with
  1063. the background of an open folder (with an arbitrary placement relative
  1064. to the background).  I realize I will have to subclass WP_Folder class
  1065. and I believe I can make subclasses, however, how do I incorporate
  1066. PM elements into the subclass?
  1067. Thanks,
  1068. Andy mendelsohn
  1069.  
  1070. Andy Mendelsohn
  1071. ********************************************************************** 
  1072.  
  1073. If you subclass WPFolder and override wpOpen, when you call the
  1074. parent class, the folder class will open the folder.  The hwnd returned
  1075. is the frame of the folder.  FID_CLIENT child of hwndFrame is the
  1076. container of the folder.  Subclass the container with WinSubclassWindow
  1077. and do whatever you want to it.
  1078.  
  1079. --Mindy
  1080. ********************************************************************** 
  1081.  
  1082.  
  1083. ΓòÉΓòÉΓòÉ 22. Workplace Shell Bug ΓòÉΓòÉΓòÉ
  1084.  
  1085. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1086. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1087.  
  1088. Ref:   None
  1089.  
  1090. From: Henk Kelder
  1091. To:  Ibm Sysop
  1092.  
  1093. Hello IBM !
  1094.  
  1095. I'd like to report to follow bug:
  1096.  
  1097. OS/2 2.11 US (Service pack applied)
  1098.  
  1099. I have a local program object. The objects handle is 2CE25.
  1100. In my PM_Workplace:Handles? is a reference to a directory (U:\JAV) on the
  1101. network I am connected to during working hours.The object handle is : 3CE25
  1102. (Notice that the lower word is the same?)
  1103.  
  1104. I just created a shadow to the program object and placed it in the startup
  1105. folder. Whenever I open this shadow the workplace shell reports:
  1106.  
  1107. The path U:\JAV cannot be found.
  1108. Be sure the drive is correct.
  1109.  
  1110. Pressing both 'OK' and 'Cancel' has the same effect: The program is started.
  1111. The same thing doesn't happen when I open the normal program object.
  1112.  
  1113. Clearly, a abstract and fs object mismatch occurs.
  1114.  
  1115. Regards,
  1116. Henk Kelder
  1117. ___
  1118.  
  1119. * EMEA OS/2 Developer Assistance Program BBS
  1120. * gHostNet(0057002C01000000 2d7fef54)
  1121. ********************************************************************** 
  1122.  
  1123. I'm impressed that you figured this one out.  I had the same
  1124. problem and spent a good couple hours debugging it.  WPS development
  1125. is aware of this problem.  (it was in 2.1 also, not just the service
  1126. pack).  To get rid of the problem for now, recreate the abstract with
  1127. the same handle and it will be assigned a new one.
  1128.  
  1129. --Mindy
  1130. ********************************************************************** 
  1131.  
  1132. From: Henk Kelder
  1133. To:  S6ghgmjp At Houvmscc╨╢
  1134.  
  1135. Hello Mindy,
  1136.  
  1137. SH>I'm impressed that you figured this one out.  I had the same
  1138. SH>problem and spent a good couple hours debugging it.  WPS development
  1139. SH>is aware of this problem.  (it was in 2.1 also, not just the service
  1140. SH>pack).  To get rid of the problem for now, recreate the abstract with
  1141. SH>the same handle and it will be assigned a new one.
  1142.  
  1143. It was not so differcult to find since I have written several programs to dump
  1144. the contents of workplace shell related data inside the inis. I already solved
  1145. the problem by purging the FS object handle from PM_Abstract:Handles using
  1146. CheckIni.
  1147.  
  1148. Regards,
  1149. Henk Kelder
  1150.  
  1151. ___
  1152.  
  1153. * EMEA OS/2 Developer Assistance Program BBS
  1154. * gHostNet(0057002C01000000 2d83ef50) reply to (0008037800580000 B49EB776)
  1155. ********************************************************************** 
  1156.  
  1157.  
  1158. ΓòÉΓòÉΓòÉ 23. 'Icon Text' Font and the Scheme Palette ΓòÉΓòÉΓòÉ
  1159.  
  1160. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1161. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1162.  
  1163. I edit an entry in the "Scheme Palette" and set the 'Icon Text' font the
  1164. way that I want it.  Then, I hold down ALT and drag the scheme entry out
  1165. and drop it on the desktop.  Fine so far.
  1166.  
  1167. However, I notice that it only seems to make a "partial global" change.
  1168. Most of the folders and things on my system get changed, but there are
  1169. still a handful of holdouts -- some with a font that is too big, and some
  1170. with a font that is too small (this is starting to sound like Goldilocks
  1171. and the Three Bears...).  I want them all to be just right.
  1172.  
  1173. Does anybody know what is going on here, and/or how to fix it?
  1174.  
  1175. John A. Pershing Jr.
  1176. ********************************************************************** 
  1177.  
  1178. I had/have a similar problem, but with getting the colour of the
  1179. icon text to change. Often, it won't.
  1180.  
  1181. I discovered the workaround was that while the desktop was flowed
  1182. (my preference) the change wouldn't take. Changing to non-grid,
  1183. applying the change, and then changing back to flowed did the trick.
  1184.  
  1185. Dave Ings
  1186. ********************************************************************** 
  1187.  
  1188. I recently installed EXTDESK -- I wonder if this could be the problem...
  1189.  
  1190. John A. Pershing Jr.
  1191. ********************************************************************** 
  1192.  
  1193. John,
  1194.  
  1195. Is it possible that at some time you went into the settings of the
  1196. folders that won't change and manually changed the fonts?  If so, then
  1197. they will stay that way no matter what you do with the Scheme Palette
  1198. *_UNLESS_* you go back into those folders and click on the DEFAULT
  1199. button on the affected "View" page.  If you have customized other
  1200. settings on that page, you can change them back afterward, but leave
  1201. the Font alone.
  1202.  
  1203. This also works for the background (color) page, by the way.  When I
  1204. was setting up my color scheme, I would drag the scheme into a folder
  1205. or two to see what it really looked like before applying it to
  1206. the entire system.  Then after using the Alt-drag, I would have to
  1207. remember to go back and re-enable the default background for those
  1208. folders.
  1209.  
  1210. Steve Bassler, Allegheny Power
  1211. ********************************************************************** 
  1212.  
  1213. I haven't knowingly changed the font of any individual object, but I tend
  1214. to have fat fingers, so it is entirely possible.  You are correct that
  1215. hitting 'Default' works -- I had assumed that this would revert back to
  1216. the installation default font (which is too tiny for my liking on my
  1217. 6091/Image-Adapter system), but it appears to "uncover" the system-wide
  1218. default that I have set with the Scheme Palette.
  1219.  
  1220. Thanks.
  1221.  
  1222. John A. Pershing Jr.
  1223. ********************************************************************** 
  1224.  
  1225.  
  1226. ΓòÉΓòÉΓòÉ 24. Alt-tab function in OS/2 2.1 ΓòÉΓòÉΓòÉ
  1227.  
  1228. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1229. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1230.  
  1231. I have a customer that is moving a number of users from W* to OS/2
  1232. 2.1.  One function they have used extensively in training there users
  1233. is the Alt-tab ability in W* to flip through running applications and
  1234. then drop into the one you want. Has anyone simulated this under
  1235. OS/2 or written some code to do it???
  1236.  
  1237. Dale G. Smith
  1238. ********************************************************************** 
  1239.  
  1240. Doug,
  1241.  
  1242. Alt-Tab functions in exactly the same way in OS/2 2.1, so no changes
  1243. or extra-code should be necessary.
  1244.  
  1245. Rex A. Desierto
  1246. ********************************************************************** 
  1247.  
  1248. Hmmmm, well I tried Alt-tab and it certainly did more than expected,
  1249. but its somewhat different. On W* you press and hold Alt and with each
  1250. press of tab, a small centered window appears with an application name
  1251. in it.  If its not the one you want, you press tab again, if it is
  1252. you release Alt and are switched to the app.  In OS/2 (from what I saw)
  1253. you press and hold Alt and with each press of tab a new application
  1254. is brought to the foreground (or its system menu is displayed if
  1255. minimized). To switch to it (if its minimized) you have to press
  1256. enter. In fact, now that I look, Alt-tab behaves like Alt-esc...
  1257.  
  1258. Dale G. Smith
  1259. ********************************************************************** 
  1260.  
  1261. Dale,
  1262.  
  1263. My fault, you were saying alt-tab, but for some reason, I was reading
  1264. alt-esc.  Now that I'm reading alt-tab as alt-tab, clearly os/2 does not
  1265. display the box with the application icon and title in it.  It does
  1266. however cycle thru your applications that are on the Desktop.
  1267. (i.e. not Minimized)  It looks like alt-esc cycles thru apps that are
  1268. on the Desktop and minimized apps, although from my experience, neither
  1269. of the two keystrokes are consistent with what appears in my Window List
  1270. (I still call it Task List from my 1.x days.)
  1271.  
  1272. Rex A. Desierto
  1273. ********************************************************************** 
  1274.  
  1275. As an alternative to cycling thru all the running applications,
  1276. point the mouse at the desktop background and press both mouse
  1277. buttons simultaneously and you will get a task list.  Double
  1278. clicking on the desired program in the tasklist will switch
  1279. directly to the chosen application.  Or clicking with mouse
  1280. button 1 to select an application, then pressing mouse button
  1281. 2 will bring up the applications system menu.
  1282.  
  1283.               Gary Coryer
  1284. ********************************************************************** 
  1285.  
  1286. I know there are other ways to do it that are native to the WPS,
  1287. but the customer is resisting retraining of users.  I was just looking
  1288. to see if someone had found a way to simulate this behavior or had
  1289. written some slick WPS code that functioned the same way...
  1290.  
  1291. Dale G. Smith
  1292. ********************************************************************** 
  1293.  
  1294. [Reference to append at 18:47 on 94/03/17 by DGSMITH at CHGVMIC1 ] 
  1295.  
  1296. Dale,
  1297.  
  1298. The Alt + Tab keys will switch to the next window.  Alt + Esc keys will
  1299. switch to the next window or full-screen session.  Ctrl + Esc will diplay
  1300. the Window List, from the Window List, you can select a new task.  For a
  1301. complete listing of system tasks, refer to the Keyboard and Mouse Use
  1302. Appendix, in the manual OS/2 2.1 Using the Operating System.
  1303.  
  1304. Anthony A Thomas Boca Electronic Support Team
  1305. ********************************************************************** 
  1306.  
  1307. [Reference to append at 15:58 on 94/03/21 by DGSMITH at CHGVMIC1 ] 
  1308.  
  1309. The alt-tab function in Windows is fantastic!! Not only is its
  1310. task switching fast, but it also allows you to toggle to and fro
  1311. between the last two active applications.  It is one Windows 3.1
  1312. feature that is far superior to that provided by OS/2.
  1313.  
  1314. e.g. If you are working with an editor and want to switch to the
  1315. file manager task, you can press alt-tab and cycle through the
  1316. apps boxes until you find the file manager. You can then do some
  1317. work in the File Manager. When you are finished, you can switch
  1318. back to the editor using a single alt-tab. To switch back to the
  1319. File Manager requires a single alt-tab. So onc can toggle
  1320. backwards and forwards between the same two apps very quickly.
  1321.  
  1322. Unfortunately on OS/2 the alt-tab takes in the desktop
  1323. on the way, so an extra alt-tab is sometimes required to get to
  1324. the application you want.
  1325.  
  1326. The only way that I have found to create the alt-tab to-and-fro
  1327. toggle under OS/2 is to use the SWITCH utility off Hobbes to
  1328. turn of the Desk Top switchability.  Then if I minimise all
  1329. windows to the minimise viewer except for the two I want to
  1330. toggle between, I can achieve something close to the Windows
  1331. alt-tab to-and-fro toggle.
  1332.  
  1333. Mark Berger
  1334. ********************************************************************** 
  1335.  
  1336.  
  1337. ΓòÉΓòÉΓòÉ 25. Remove System Setup from Desktop Menu ΓòÉΓòÉΓòÉ
  1338.  
  1339. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1340. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1341.  
  1342. Is it possible (either in C or REXX) to remove the
  1343. System Setup option from the Desktop popup menu?
  1344.  
  1345. Pat Malneritch, Delta Air Lines
  1346. ********************************************************************** 
  1347.  
  1348. C - yes, with some SOM/WPS code...
  1349.  
  1350. Gregory Czaja, Lexington 8-545-4977  GregC at LEXGate 1994/04/05  09:01
  1351. ********************************************************************** 
  1352.  
  1353. [Reference to append at 12:25 on 94/04/05 by DALNK03 at HONE82 ] 
  1354.  
  1355. Pat,
  1356. re:
  1357. >Is it possible (either in C or REXX) to remove the
  1358. >System Setup option from the Desktop popup menu?
  1359.  
  1360. Apparently so, but I believe it involves WPS programming.  I do know
  1361. of one place it is being done, but am under NDA (sort of).  The
  1362. developer of the package I'm speaking of does frequent this CFORUM
  1363. though... maybe he'll see your question and take pity on you <g>.
  1364.  
  1365. | Oops... looks like he already answered you...
  1366.  
  1367. -Scott Samuelson- Washington Public Power Supply System (509)372-5197
  1368. ********************************************************************** 
  1369.  
  1370. [Reference to append at 12:25 on 94/04/05 by DALNK03 at HONE82 ] 
  1371.  
  1372. Pat,
  1373.  
  1374. It can be done, and using REXX or C, you can do it easily on any system
  1375. that has the new version of DeskMan/2 installed.  If you would like more
  1376. details, please feel free to inquire over in the DEVTECH CFORUM.
  1377.  
  1378. Thanks!
  1379.  
  1380. Evan Bergman - Development Technologies, Inc.  ╨½DeskMan/2 Tech. Support|
  1381. ********************************************************************** 
  1382.  
  1383.  
  1384. ΓòÉΓòÉΓòÉ 26. Move OS/2 from C: to E:? ΓòÉΓòÉΓòÉ
  1385.  
  1386. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1387. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1388.  
  1389. Is it possible to move OS/2 (desktop and all) to a different drive?  I
  1390. know that XCOPY will get the files, directories, and EAs to the other
  1391. drive, but is there anything else that needs to be done (apart from
  1392. changes to CONFIG.SYS etc.)?  Anything hidden in the INI files that
  1393. needs to be changed, etc.?  Thanks in advance.
  1394.  
  1395. Mark Thompson
  1396. Coal Services Corp.
  1397. St. Louis, MO
  1398. ********************************************************************** 
  1399.  
  1400. If you move your desktop from C: to E:, you must do it from workplace
  1401. shell.  (drives folder)
  1402.  
  1403. --Mindy
  1404. ********************************************************************** 
  1405.  
  1406.  
  1407. ΓòÉΓòÉΓòÉ 27. Change WPS Desktop Behavior? ΓòÉΓòÉΓòÉ
  1408.  
  1409. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1410. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1411.  
  1412. If two (2) overlapping windows are open on the desktop
  1413. and the cursor is moved to the inactive window and the
  1414. left mouse button is clicked, then the inactive window
  1415. is made the current window and it is brought to the forground.
  1416.  
  1417. But when the same thing is done to the WPS desktop,
  1418. it is not brought to the foreground.  Is there a way to
  1419. override the behavior of the WPS desktop so that
  1420. it behaves like windows do in the example above?
  1421.  
  1422. Jerry Sandridge      Compuserve 76260,2166
  1423. Pa Blue Shield      Internet uswv6k@ibmmail.com
  1424. ********************************************************************** 
  1425.  
  1426. The desktop is, by definition, the desktop, and therefore always on the
  1427. bottom.  You can quickly get the _contents_ of the desktop to the top, though,
  1428. by doing a click-2 anywhere on the desktop and doing an Open->Tree view or
  1429. Open->Details view.
  1430.  
  1431. You can also bring a window containing part of the the Icon view (it can never
  1432. be the whole Icon view, since the whole Icon view, by definition, occupies
  1433. your entire screen) to the top if you change the Desktop's Object open
  1434. behavior from "Display existing window" to "Open new window", but on 2.11,
  1435. making this change has the annoying side-effect of causing two desktops to
  1436. appear at boot time, so I recommend sticking with Tree or Detail.
  1437.  
  1438. John W. Kennedy - Hoechst Celanese - TIPA - Team OS/2 - The OS/2 Hobbit
  1439. ********************************************************************** 
  1440.  
  1441.  
  1442. ΓòÉΓòÉΓòÉ 28. How to create desktop ΓòÉΓòÉΓòÉ
  1443.  
  1444. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1445. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1446.  
  1447. We are producing more and more in-house applications for thein the
  1448. OS/2 world.  We have an Easel application on about 100 workstations,
  1449. an AM application on about 150 workstations, so now we naturally
  1450. have decided that future development will be in Enfin!  Regardless
  1451. of the application one thing is constant - the "native" OS/2
  1452. desktop is too tempting, distracting, and or confusing for the typical
  1453. untrained user.
  1454.  
  1455. I love OS/2, but we are losing oodles (technical term) of time trying
  1456. to unscramble user machines where the user, "Hasn't touched anything
  1457. I swear!"
  1458.  
  1459. Question:  Is there a way, or a tool, or a reference such that we can
  1460. have a desktop where the only thing the user can do is the desired
  1461. application?
  1462.  
  1463. Russell Baker
  1464. Blue Cross & Blue Shield of MD, Inc.
  1465. (410) 998-5499
  1466. ********************************************************************** 
  1467.  
  1468. You may want to look into the "Secure Workplace for OS/2" by
  1469. Syntegration, (909) 464-9450.  This app allows you to secure all items
  1470. on the DeskTop and limit user access to only those items/functions that
  1471. they may need.  You can turn off the various functions on the pulldown
  1472. menus for those items that they do have access to.
  1473.  
  1474. Alan Newman IBM
  1475. ********************************************************************** 
  1476.  
  1477. [Reference to append at 15:11 on 94/04/12 by MDBC028 at HONE81 ] 
  1478.  
  1479. You might want to look into our DeskMan/2 product.  Among its many other
  1480. functions, it allows you to restrict access to objects, menus, and windows.
  1481.  
  1482. For example, I can set up a desktop which is automatically restored to
  1483. a previously saved image every time the system boots up.  I can set it
  1484. up so that the starting image has only one object on it, for example, to
  1485. sign-on to the network.  I can set it up so that after the user signs onto
  1486. the network, the objects that that user is supposed to be able to use are
  1487. made visible upon that system.  I can set it up so that only those menus
  1488. which that user is supposed to use are available for use on that system,
  1489. for example, removing Delete, Move, Copy, Find, Sort, Arrange, and Open
  1490. Settings menus from all objects.
  1491.  
  1492. I can then set it up so that even though only those objects which that user
  1493. is allowed to see are on the desktop, that user still needs to provide a
  1494. password in order to access any of the PM Windows, such as DOS Settings,
  1495. which I might want to protect with a password from casual changes.
  1496.  
  1497. Essentially, we can configure the Workplace Shell to almost any desired
  1498. degree.  Let us know if you'd like further information.  You can reach us
  1499. here in our support forum, DEVTECH, or by phone at (803) 790-9230.
  1500.  
  1501. Evan Bergman - Development Technologies, Inc. ╨½DeskMan/2 Tech. Support|
  1502. ********************************************************************** 
  1503.  
  1504. [Reference to append at 15:11 on 94/04/12 by MDBC028 at HONE81 ] 
  1505.  
  1506. Russell,
  1507.  
  1508.  There are many ways to accomplish what you want to do, but you
  1509. will need to invest some time and maybe some dollars for the products
  1510. that others have mentioned.
  1511.  
  1512.  Depending on the exact requirements, you may be able to do what
  1513. you are trying to do with just some REXX code or some customized
  1514. RC files.  Sometimes this may not be enough, and a tool like DeskMan/2
  1515. is needed.  (DeskMan/2 can do the entire job, don't get me wrong -
  1516. but for some situations, it may or may not be needed).
  1517.  
  1518.  Append a more detailed explanation of the environment and of the
  1519. target WPS interface, either here or in DevTech forum, and I'm sure
  1520. you'll get all the help you need!  :-)
  1521.  
  1522.  Bret Curran  -- Personal Systems Competency Center  1-800-547-1283
  1523.          IBMMAIL(USIB4CUR)  CIS: 71075,3156
  1524. ********************************************************************** 
  1525.  
  1526. Bret,
  1527.  
  1528. Thanks for the reply.  I have contacted some of the vendors BBS people
  1529. have suggested and I am interfacing with them.  That may end up being
  1530. our solution.  However... if I can avoid a fee times 500+ workstations
  1531. I am sure my management would appreciate it.
  1532.  
  1533. I am quite comfortable with REXX.  As  matter of fact I have been
  1534. creating applications with Watcom's VXREXX.  It is lots of fun!  What
  1535. I lack I guess is a knowledge of how the workplace shell works.  Maybe
  1536. you can recommend some reading.  I am not a "C" person.
  1537.  
  1538. It is difficult to describe what I want because I don't know what my
  1539. options are.  Basically I want a user to sit down at their machine
  1540. and be able only to perform limited operations i.e. start CM/2,
  1541. start custom app.  That's it.  I don't want them to have the ability
  1542. to open any other folders that will inevitably get them into trouble.
  1543. But... our technicians need to be able to get to other stuff for trouble
  1544. shooting.
  1545.  
  1546. Maybe a destop with an folder called OS2STUFF that is password protected
  1547. or something like that would be cool.  I have just received  OS/2
  1548. REXX From Bark to Byte and OS/2 2.1 REXX Handbook by German.  Maybe
  1549. there is something in there.  Thanks again.
  1550.  
  1551. Russell Baker
  1552. Blue Cross & Blue Shield of MD, Inc.
  1553. (410) 998-5499
  1554. ********************************************************************** 
  1555.  
  1556. Russell,
  1557.  
  1558.  Glad to help... I understand about the fee times 500 machines
  1559. concept, but I'm sure the vendors understand even more.  Simply
  1560. put, there are many things that are just a lot easier, and sometimes
  1561. only possible, through the use of their tools.
  1562.  
  1563.  The REXX Bark to Byte book is very good overall, and has a pretty
  1564. good chapter on WPS and REXX.  I can truly say that because most of
  1565. that chapter came directly from 2 articles that I wrote in Personal
  1566. Systems Technical Solutions magazine last year!  <vbg>  The other
  1567. book has very little, if any, mention of WPS - I did a technical review
  1568. of that book, but also of 3 other REXX books at the same time, so it
  1569. sort of starts to run together, if you know what I mean. :-)
  1570.  
  1571. The concept of putting all "unwanted" objects into one folder,
  1572. and then either password protecting that object or hiding that
  1573. object, is pretty common and works well.  Personally, I like
  1574. hiding it, because a user is frustrated more by seeing an object
  1575. on their "personal" desktop that they can not get into.  By
  1576. hiding the object, they no longer see it, plus the administrators
  1577. can have a simple REXX program to "unhide" the object when needed.
  1578.  
  1579. Hiding is easy - the following line hides the Info folder:
  1580.   result=SysSetObjectData(<WP_INFO>,NOTVISIBLE=YES);
  1581.  
  1582. Fortunately, I have a book coming out that talks about how to
  1583. do all of this, some tricks of the trade, some neat ways to accomplish
  1584. what you are trying to accomplish, and more... It's tentative title
  1585. is Master Your Workplace: Using REXX Programming, and it's an entire
  1586. book focus on how to use REXX and some other miscellaneous techniques
  1587. and tools to customize the WPS. Publisher will be Prentice Hall.
  1588. Unfortunately, it's just beginning the publishing phase and will likely
  1589. be another 6-8 weeks before it hits the shelves, I imagine.
  1590.  
  1591. In the meantime, if you have any specific questions, just append
  1592. out here and I'm sure they'll be answered....
  1593.  
  1594.  Bret Curran  -- Personal Systems Competency Center  1-800-547-1283
  1595.          IBMMAIL(USIB4CUR)  CIS: 71075,3156
  1596. ********************************************************************** 
  1597.  
  1598. You're a heck of a guy, Bret.
  1599.  
  1600. Joe R Wyatt
  1601. USAA
  1602. San Antonio, Tx
  1603. ********************************************************************** 
  1604.  
  1605. Well, Joe, at first I read your append and thought you
  1606. were serious... then I reread my append and noticed how
  1607. many "I did..., I ..." statements were in there, and starting
  1608. thinking you might be saying it sarcastically.  Honestly, I
  1609. don't know which it is at this time.  I hope it didn't come
  1610. across egotistically, and apologize if it did.
  1611.  
  1612. As far as the book goes, it's been very difficult keeping quiet
  1613. the past few months when I know many questions will be
  1614. answered by what's in the book.  The answer to the question of
  1615. when does one start "advertising" the fact is not an easy one.
  1616.  
  1617.  Bret Curran  -- Personal Systems Competency Center  1-800-547-1283
  1618.          IBMMAIL(USIB4CUR)  CIS: 71075,3156
  1619. ********************************************************************** 
  1620.  
  1621. Bret,
  1622.  
  1623. I think your a heck of a guy too.  New book or no new book!
  1624.  
  1625. I read the Bark to Byte stuff and used the example on page 81:
  1626.  
  1627.   App='PM_Workplace:Location'
  1628.   call SysIni 'USER', App, 'All:','Keys'
  1629.   IF Result \= 'ERROR:' THEN
  1630.    DO...
  1631.  
  1632. inside the loop I added the line:
  1633.      result = SysSetObjectData(Keys.i,'notvisible=yes')
  1634.  
  1635. then I added another loop setting notvisible=no
  1636.  
  1637. I thought it would be fun to run a program that would make everything
  1638. invisible, wait for 10 seconds, then make it visible again.  The
  1639. program worked, sort of.  Some of the icons on my desktop turned
  1640. invisible and then visible again.  Others were not affected.
  1641. Any idea why all desktop objects were not made invisible?
  1642.  
  1643. Thanks again for assisting a novice WPS REXXer.
  1644.  
  1645. Russell Baker
  1646. Blue Cross & Blue Shield of MD, Inc.
  1647. (410) 998-5499
  1648. ********************************************************************** 
  1649.  
  1650. Obviously, not ALL of your Desktop objects have an object ID assigned...
  1651.  
  1652. Gregory Czaja, Lexington 8-545-4977  GregC at LEXGate 1994/04/18  14:01
  1653. ********************************************************************** 
  1654.  
  1655. [Reference to append at 15:14 on 94/04/18 by MDBC028 at HONE82 ] 
  1656.  
  1657. Russell,
  1658.  
  1659.  Thanks.  As Greg pointed out, it's most likely because your
  1660. objects on your desktop don't all have ObjectIDs... in this case,
  1661. a tool like DeskMan/2 is awful handly! --Bret
  1662.  
  1663.  Bret Curran  -- Personal Systems Competency Center  1-800-547-1283
  1664.          IBMMAIL(USIB4CUR)  CIS: 71075,3156
  1665. ********************************************************************** 
  1666.  
  1667. [Reference to append at 20:29 on 94/04/14 by CURRANB at DALVM41B ] 
  1668.  
  1669. No slurs or slanders meant, Bret.  I've found your articles quite
  1670. useful.  It would have taken quite a bit more work writing some of
  1671. my rexx wps stuff without them.
  1672.  
  1673. Please note:  Nothing from here on out is to be taken seriously.
  1674.  
  1675. Joe R Wyatt
  1676. USAA
  1677. San Antonio, Tx
  1678. ********************************************************************** 
  1679.  
  1680.  
  1681. ΓòÉΓòÉΓòÉ 29. default directory for bitmaps ΓòÉΓòÉΓòÉ
  1682.  
  1683. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1684. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1685.  
  1686. I found the same question that I have but no answer.  Is there no
  1687. way to tell OS/2 to look elsewhere for bitmaps that c:\os2\bitmap?
  1688. The FIND method absolutely stinks!
  1689.  
  1690. Russell Baker
  1691. Blue Cross & Blue Shield of MD, Inc.
  1692. (410) 998-5499
  1693. ********************************************************************** 
  1694.  
  1695. I believe my LOCKMAP package was released through the DAP program,
  1696. possibly under the name LKMAP.  It allows you to select background and
  1697. lockup bitmaps from any directory, among other things.
  1698.  
  1699. Blair Thompson        BLAIR at CANVM2        IBM Canada Ltd.
  1700. ********************************************************************** 
  1701.  
  1702.  
  1703. ΓòÉΓòÉΓòÉ 30. ExCal now available through OS/2 Employee Written Software! ΓòÉΓòÉΓòÉ
  1704.  
  1705. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1706. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1707.  
  1708.      in OS2EWS CFORUM
  1709.  
  1710. FYI...
  1711.  
  1712. Dan Kehn
  1713. ********************************************************************** 
  1714.  
  1715.  
  1716. ΓòÉΓòÉΓòÉ 31. Screen saver ΓòÉΓòÉΓòÉ
  1717.  
  1718. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1719. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1720.  
  1721. I've got a little problem, and I couldn't find any answer.
  1722. I use an automatic lockup, and when it starts, I've got a screen saver
  1723. which clear the screen and display a moving lock.
  1724. I would like to know where I have to go to change parameters for this
  1725. screen saver. (how to desactivate it, how to use it WITHOUT
  1726. locking my computer, ....)
  1727.  
  1728. Thank you in advance for any help,
  1729.  
  1730. Raphael Guibaudet -- Havant (UK)
  1731. ********************************************************************** 
  1732.  
  1733. The settings for the lockup feature can be found by using the right
  1734. mouse button, to bring up the DeskTop pulldown menu and then selecting
  1735. settings, you can then select the LockUp tab, this will give you three
  1736. pages of setting selections for the LockUp feature. You will however not
  1737. be able to have the lockup/screen saver feature active without a password
  1738. you can if you wish make the password something simple, such as a single
  1739. space, if you wish.
  1740.  
  1741. Alan Newman IBM
  1742. ********************************************************************** 
  1743.  
  1744.  
  1745. ΓòÉΓòÉΓòÉ 32. Adding items to the System Pop-Up Menu ΓòÉΓòÉΓòÉ
  1746.  
  1747. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1748. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1749.  
  1750. I need to add several items to the system pop-up menu.  specifically,
  1751. I would like to add the objects for the OS/2, DOS, OS/2 Windowed and
  1752. DOS Windowed Command prompts.  I know how to do this manually; however,
  1753. I need to add this to about 1500 OS/2 workstations that we are
  1754. just getting ready to upgrade from OS/2 1.3 to OS/2 2.1.  Do you know
  1755. of a way to do this via REXX (preferrably) or any other suggestions
  1756. would be helpful too!  Thanks,
  1757.  
  1758. Cynthia Berry
  1759. Twentieth Century Services
  1760. 816-340-7973
  1761. ********************************************************************** 
  1762.  
  1763. There currently is no way to programmatically add menu items
  1764. like the menu page does.  The only thing I can think of for
  1765. you to do would be to strip the EAs off an OS/2 System folder that
  1766. works the way you like it and join it on the OS/2 System folder
  1767. of the workstations you with to modify.
  1768.  
  1769. | WITH to modify?  lookths like I have a lithp
  1770.  
  1771. EAUTIL will do it and there may be Rexx functions for manipulating
  1772. EAs but I don't know what they are.  (EAUTIL comes with OS/2)
  1773.  
  1774. --Mindy
  1775. ********************************************************************** 
  1776.  
  1777. Mindy, If I drag an object onto the menu page, then later come
  1778. back and change the settings of that object, what happens to the
  1779. item on the menu?
  1780.  
  1781. Dale R. Seng
  1782. ********************************************************************** 
  1783.  
  1784. The menu page you added another object to saves two
  1785. things about the object:  The title to be used for the menu item and
  1786. the persistent handle of the object.  When you drag a program into
  1787. the menu page, the title is set, by default, to the title of the
  1788. object, but you can change that to anything without affecting the
  1789. object dragged.  Using the handle, the menu will always run the
  1790. correct program.
  1791.  
  1792. My point is, when you drag an object into a menu page and then
  1793. change the settings of the object, all settings will be honored
  1794. EXCEPT for the title.  Since the menu page takes a copy of the title
  1795. at the time you do the drag, if you change the title of the object
  1796. it will not update the menu page.  This may seem inconsistent but
  1797. the menu item text isn't necessarily defined to be the TITLE of the
  1798. object it points to.
  1799.  
  1800. But if you change any other settings on the program (session type,
  1801. dos settings, etc.) they will all be reflected when you run it from
  1802. the menu item.
  1803.  
  1804. --Mindy
  1805. ********************************************************************** 
  1806.  
  1807. [Reference to append at 21:37 on 94/04/19 by S6GHGMJP at HOUVMSCC ] 
  1808.  
  1809. Mindy,
  1810.  
  1811.  I tried the EAUTIL but it didn't work for me.  I created from a
  1812. template FOLDER1 and FOLDER2, and then added 2 items to the menu
  1813. of FOLDER1.
  1814.  I then used EAUTIL /s /p to split off the EAs into a temp file,
  1815. and then attached them to FOLDER2 with EAUTIL /j.
  1816.  It worked except for the menu items - I ended up with two folders
  1817. named FOLDER1 and so forth.  Oh, I also had to do an /o on the join
  1818. per the help.
  1819.  
  1820.  Am I doing something wrong, or does this not always work?
  1821. thanks --Bret
  1822. ********************************************************************** 
  1823.  
  1824. I wrote a crude program which exists in the OS/2 Developer 1 forum,
  1825. OS/2 2.X WPS on CompuServe.  This program sends messages to the WPS
  1826. to add items to the desktop popup menu and was written because we
  1827. needed a way to customize 8000 desktops programmatically.  Source is
  1828. included so you can add any menu items you wish.  It will also set the
  1829. sort order if you choose. I have since changed this program to also
  1830. add cascaded menu items but have not yet put it on the forum.  This
  1831. is all I could think of until WPS private methods are made public and
  1832. documented.
  1833.  
  1834. BRIAN MCMANAMON
  1835. FORD CREDIT COMPASS Project
  1836. ********************************************************************** 
  1837.  
  1838. Brian, what's the name of your program?  Thanks!  I'd definitely
  1839. be interested in checking it out!
  1840.  
  1841.  Bret Curran  -- Personal Systems Competency Center  1-800-547-1283
  1842.          IBMMAIL(USIB4CUR)  CIS: 71075,3156
  1843. ********************************************************************** 
  1844.  
  1845. DESKTOP.ZIP ON 2.X WPS, Developer's 1 forum.
  1846.  
  1847. BRIAN MCMANAMON
  1848. FORD CREDIT COMPASS Project
  1849. ********************************************************************** 
  1850.  
  1851. >
  1852. >DESKTOP.ZIP ON 2.X WPS, Developer's 1 forum.
  1853. >
  1854. >BRIAN MCMANAMON
  1855. >FORD CREDIT COMPASS Project
  1856.  
  1857. Could this file be put up on this board for download? Please.
  1858.  
  1859. Al Brown, Brown & Associates Consulting
  1860. Voice: (402)291-1410  Fax: (402)291-1623
  1861. ********************************************************************** 
  1862.  
  1863. I did not know this was now available on this new interface?  How???
  1864.  
  1865. Brian McManamon
  1866. Ford Credit COMPASS Project
  1867. (313) 390-6408
  1868. ********************************************************************** 
  1869.  
  1870.  
  1871. ΓòÉΓòÉΓòÉ 33. Size of Dialogs in OS/2 2.1 ΓòÉΓòÉΓòÉ
  1872.  
  1873. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1874. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1875.  
  1876. Ref:   None
  1877.  
  1878. From: Ccaa2214
  1879. To:  All
  1880.  
  1881. Dialogs prepared using ther OS/2 2.01 dialog editor appear much larger when
  1882. displayed under OS/2 2.1. This causes some of our dialogs to overflow the
  1883. screen when displayed in OS/2 2.1 and is preventing us from upgrading to OS/2
  1884. 2.1
  1885.  
  1886. Also we have found that the scheme palette utility does not allow  dialog
  1887. text fonts to be defined and we cannot apply these schemes system wide (ie.
  1888. the Alt and drag function does not work under OS/2 2.1).
  1889.  
  1890. Please can anyone tell me if I am doing something wrong or are fixes going to
  1891. be available in later releases of OS/2 ?
  1892.  
  1893. NB. We are using XGA screens attached to PS/2 57 OBA machines.
  1894.  
  1895. Bob Tinley.
  1896.  
  1897. * EMEA OS/2 Developer Assistance Program BBS
  1898. * gHostNet(0057002C01000000 2db57f10)
  1899. ********************************************************************** 
  1900.  
  1901.  
  1902. ΓòÉΓòÉΓòÉ 34. (no subject) ΓòÉΓòÉΓòÉ
  1903.  
  1904. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1905. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1906.  
  1907. test
  1908.  
  1909. Martin Duy Vo, OT CoC
  1910. ********************************************************************** 
  1911.  
  1912.  
  1913. ΓòÉΓòÉΓòÉ 35. Adding ASSOCTYPEs ΓòÉΓòÉΓòÉ
  1914.  
  1915. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  1916. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  1917.  
  1918. Howdy,
  1919.  
  1920. I have been REXXing around in OS/2 lately and it has been fun but
  1921. it raises a few questions that I hope you more experienced type
  1922. people can help me with:
  1923.  
  1924. 1.  What is the value of the ASSOCTYPE?  It seems easier to just
  1925.  add the desired file mask via ASSOCFILTER.
  1926.  
  1927. 2.  If program A has a ASSOCFILTER of *.DOC and program B has an
  1928.  ASSOCFILTER of *.DOC how does OS/2 know what what program gets
  1929.  started if one clicks on a data icon?
  1930.  
  1931. Thanks.
  1932.  
  1933. Russell Baker
  1934. Blue Cross & Blue Shield of MD, Inc.
  1935. (410) 998-5499
  1936. ********************************************************************** 
  1937.  
  1938. For question 1, ASSOCTYPE is useful because not everyone likes
  1939. to put extensions on their data file objects.  Since the title of
  1940. a workplace object is similar to the file name, people like to just
  1941. give them nice names with no extensions and assign the proper types
  1942. to them.
  1943.  
  1944. for question 2, I THINK, workplace will go look for the associated
  1945. programs for that data file and list them as views for the data file.
  1946. I think it just makes the first one it finds the default.  Then the
  1947. user can change that in the menu page.  I don't know if the default
  1948. association can be set programmatically.
  1949.  
  1950. --Mindy
  1951. ********************************************************************** 
  1952.  
  1953. Mindy,
  1954.  
  1955. Thank you for the reply.  I was running into difficulty when
  1956. trying to set up a new type called DOC that had the filter of
  1957. *.doc.  When I clicked on my .doc files the system editor kept
  1958. getting invoked.  After more research in the toolkit I stumbled
  1959. across an example for creating the Plain text ASSOCTYPE and it
  1960. showed the filter *.DOC.  I wanted to confirm that Plain text
  1961. included *.DOC but I don't see how I can find out in REXX.  In
  1962. the toolkit there is wpQueryAssociationType, and lots of other
  1963. cool stuff.  Do you know if these functions are available via
  1964. REXX?  I haven't seen them documented anywhere.
  1965.  
  1966. Thanks again.
  1967.  
  1968. Russell Baker
  1969. Blue Cross & Blue Shield of MD, Inc.
  1970. (410) 998-5499
  1971. ********************************************************************** 
  1972.  
  1973. You currently cannot call any workplace methods via REXX.  There may
  1974. be some outside applications that provide this function but OS/2
  1975. does not.
  1976.  
  1977. *.DOC is not tied by definition to Plain Text.  It's just that the
  1978. os/2 system editor object in workplace is associated to Plain Text
  1979. AND *.DOC.  THat is why the system editor comes up for the data file.
  1980. The way to stop this is to remove the associations for the sytem editor
  1981. object.
  1982.  
  1983. I think you can do this if you call
  1984. SysSetObjectData on <WP_SYSED> and set ASSOCFILTER to *.TXT
  1985. (currently it is set to *.TXT,*.DOC)
  1986.  
  1987. The only problem is, if you do this on someone else's machine,
  1988. they might get miffed that you removed an association that they
  1989. were used to having.  (Personally, the second I install OS/2 on
  1990. my machine I REMOVE the association of the system editor to my data files
  1991. but some people might like it)
  1992.  
  1993. Hope this helps,
  1994.  
  1995. --Mindy
  1996. ********************************************************************** 
  1997.  
  1998.  
  1999. ΓòÉΓòÉΓòÉ 36. Changing System Settings via Rexx ΓòÉΓòÉΓòÉ
  2000.  
  2001. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  2002. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2003.  
  2004. > Originally appended to OS2WPS CFORUM at 21:41:03 on 94/04/12 GMT
  2005. |
  2006. | This append is being resent as it appears to only be available on
  2007. | the Canadian shadow.
  2008. |
  2009. I didn't get a response in the Rexx forum - is this a better place? ...
  2010.  
  2011. I finally received the Rexx Reference Summary Handbook, and eagerly
  2012. started coding a command file to customize desktops through NVDM/2.
  2013. However, I can't figure out how to accomplish the 2 main changes I want
  2014. to make:
  2015.  
  2016. 1) There is no information about how to append new options to the pop-up
  2017.   menu.  In fact, there is nothing on the Menu Tab at all.  Does this
  2018.   mean it can't be done via Rexx?  Does anyone have a 'C' solution?
  2019.   (I simply want to add an 'OS/2 Window' menu option to the Desktop
  2020.   pop-up menu).
  2021.  
  2022. 2) I can't seem to change the Window Tab settings of the System object
  2023.   (WP_SYSTEM).  I know I am using the correct ObjectID because I can
  2024.   change the Title no problem.  I also can change the 3 key-values,
  2025.   (HIDEBUTTON, MINWIN, and CCVIEW) on other objects (like WP_DESKTOP)
  2026.   with no problem.  When I query the object settings through Deskman/2
  2027.   both WP_SYSTEM and WP_DESKTOP show the settings that I have changed,
  2028.   but only WP_DESKTOP reflects those changes when I open up the Settings
  2029.   Notebook.  Do the settings of the Window Tab of WP_SYSTEM have
  2030.   different key-names or are they protected somehow?  I've tried using
  2031.   the setting 'SETTINGS=YES' - didn't work.  I've tried rebooting - nope
  2032.  
  2033. Please help if you can!
  2034.  
  2035. Mike McVarish - LAN Specialist, Workers Compensation Board
  2036.  
  2037. Append copied from OS2REXX  CFORUM  on OS2BBS
  2038. ********************************************************************** 
  2039.  
  2040. Mike,
  2041.  It is not possible to add popup menu items to a folder via REXX.
  2042.  
  2043.  The settings that you are trying to change can be changed via
  2044. the SysIni call and the PM_ControlPanel application in the OS2.INI
  2045. file.
  2046. | Of course, the standard disclaimer on the INI file settings not
  2047. | being documented should be included.  It works today, but is not
  2048. | "guaranteed" to work that way in future releases.
  2049.  
  2050.  Bret Curran  -- Personal Systems Competency Center  1-800-547-1283
  2051.          IBMMAIL(USIB4CUR)  CIS: 71075,3156
  2052. ********************************************************************** 
  2053.  
  2054. Thanks for the response.  Looks like I am going to have to make an
  2055. educated guess at which key represents which system setting.
  2056. MinButtonType is obvious.  HiddenMinWindow is probably "Minimize to
  2057. Desktop or Minimized Window Viewer".  But there seems to be no key that
  2058. represents "Open new or existing window"  (CCVIEW for other object).
  2059. But testing is half the fun!!!!
  2060.  
  2061. Mike McVarish - LAN Specialist, Workers Compensation Board
  2062. ********************************************************************** 
  2063.  
  2064.  
  2065. ΓòÉΓòÉΓòÉ 37. Deleting Desktop Objects via REXX ΓòÉΓòÉΓòÉ
  2066.  
  2067. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  2068. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2069.  
  2070. I need to be able to delete some folders and programs off of an OS/2
  2071. 2.1 desktop.  I've used SysDestroyObj to do this previously.  However,
  2072. the objects I am deleting do not have objectids.  Can anyone suggest
  2073. how I might be able to do this via REXX.  Also, if you have a "snippet"
  2074. of code that could illustrate this that would be very helpful.  Thanks!
  2075.  
  2076. Cynthia Berry
  2077. Twentieth Century Services
  2078. 816-340-7973
  2079. ********************************************************************** 
  2080.  
  2081. Cynthia,
  2082.  
  2083. I noticed that you haven't yet had a response here.  You can only delete
  2084. objects if you have their object IDs or full physical path names.  Since
  2085. you are trying to delete abstract objects that don't have object IDs or
  2086. physical path information, you will need to use a product such as our
  2087. DeskMan/2 product, using the methods which we've already reviewed on the
  2088. phone and elsewhere.
  2089.  
  2090. If you have any other questions regarding this, please feel free to give
  2091. us a call at (803) 790-9230 or drop us a message in the DEVTECH CFORUM.
  2092.  
  2093. Evan Bergman - Development Technologies, Inc.  ╨½DeskMan/2 Tech. Support|
  2094. ********************************************************************** 
  2095.  
  2096.  
  2097. ΓòÉΓòÉΓòÉ 38. (no subject) ΓòÉΓòÉΓòÉ
  2098.  
  2099. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  2100. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2101.  
  2102. Moved to OS2REXX CFORUM on OS2BBS by Mike McVarish - LAN Specialist, Workers Compensation Board
  2103. ********************************************************************** 
  2104.  
  2105.  
  2106. ΓòÉΓòÉΓòÉ 39. Changing the Screen Resolution via REXX ΓòÉΓòÉΓòÉ
  2107.  
  2108. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  2109. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2110.  
  2111. Is it possible to change the screen resolution via REXX.  I thought that the Sys
  2112. call might do this...but, the documentation doesn't seem to indicate this.
  2113.  
  2114. To change the screen resolution manual you would go into 'System Setup' then int
  2115. 'System' program and select the screen tab.  We would like to automate this if a
  2116. all possible.  I am open to other suggestions if SysIni won't work.  Thanks!
  2117.  
  2118. Cynthia Berry
  2119. Twentieth Century Services
  2120. 816-340-7973
  2121. ********************************************************************** 
  2122.  
  2123.  
  2124. ΓòÉΓòÉΓòÉ 40. Creating Shadow Objects with 'Path' information ΓòÉΓòÉΓòÉ
  2125.  
  2126. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  2127. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2128.  
  2129. I am creating a couple of shadow objects with only 'path' information,
  2130. since I don't have objectid's for these.  I am attempting to make
  2131. a shadow of the 'Logon' and 'Logoff' program objects from the 'User
  2132. Profile Management' folder to a folder we call 'Main'.  The code I
  2133. use to do this is as follows:
  2134.  
  2135. classname='WPShadow'
  2136. title='Logon'
  2137. location ='<TCMAIN_FLDR>'
  2138. setup= 'SHADOWID=C:\MUGLIB\LOGON.EXE'
  2139. call BLDOBJ
  2140.  
  2141. classname='WPShadow'
  2142. title='Logoff'
  2143. location ='<TCMAIN_FLDR>'
  2144. setup= 'SHADOWID=C:\MUGLIB\LOGOFF.EXE'
  2145. call BLDOBJ
  2146.  
  2147. BLDOBJ:
  2148. result = SysCreateObject(classname, title, location, setup, 'U')
  2149. If result=1 then
  2150.  do
  2151.   call charout ,'...  Object created!'
  2152.  end
  2153. Else
  2154.   do
  2155.    call charout ,'...  Not created! Return code='result
  2156.   end
  2157. Return
  2158. exit
  2159.  
  2160. My program icon gets created as it should; however, the title is
  2161. not 'Logon' or 'Logoff'...it is Logon.exe and Logoff.exe. The parameters
  2162. associated with the Logoff Object do not get transferred to the shadow
  2163. either...and when I double click on either the logon or logoff they
  2164. don't behave the way they are supposed to.  Instead of going instantly
  2165. to the logon panel...an OS/2 window opens and then the logon panel
  2166. comes up.  I also get an OS/2 window prior to logoff executing.
  2167.  
  2168. How can I get these program objects to shadow properly?
  2169.  
  2170. Cynthia Berry
  2171. Twentieth Century Services
  2172. 816-340-7973
  2173. ********************************************************************** 
  2174.  
  2175. You  are creating  shadows of  WPProgramFile  objects, i.e.  of the  real
  2176. files.  And the behavior you describe is correct for them.
  2177.  
  2178. What you want is to create shadows of the WPProgram objects, i.e. program
  2179. references.  Unfortunately, those are abstract  objects and the only way
  2180. to access them is to use either the  object ID (which they don't have) or
  2181. the object handle (which you would have to pull of the OS2.INI files).
  2182.  
  2183. I know, you don't  like DeskMan/2 but it handles things  like this easily
  2184. using the REXX/C command line interface.  A call like:
  2185.  
  2186. Call PerfSH 'Logon "User Profile Management" Main';
  2187.  
  2188. would create a shadow of the Logon object in the Main folder...
  2189.  
  2190. Greg Czaja 545-4977  GregC at LEXGate 1994/04/26  11:45
  2191. ********************************************************************** 
  2192.  
  2193. [Reference to append at 20:39 on 94/04/25 by STW1CYC at HONE82 ] 
  2194.  
  2195. Instead of using shadows of programs on the LAN, create WPProgram
  2196. objects and point them to the executables on the LAN (using
  2197. EXENAME=)  Same effect, more function.
  2198.  
  2199. --Mindy
  2200. ********************************************************************** 
  2201.  
  2202.  
  2203. ΓòÉΓòÉΓòÉ 41. CheckINI nit... ΓòÉΓòÉΓòÉ
  2204.  
  2205. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  2206. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2207.  
  2208. To: Henk Kelder
  2209.  
  2210. I  had a  funny  thing happening  to  me  recently:  one  of my  testers
  2211. complained  that CheckINI  reports  an object  ID,  which my  application
  2212. creates, as "invalid".
  2213.  
  2214. What's funny about  it?  Well, the  object is there, with  a valid object
  2215. ID.  However, it  is a descendant of WPTransient.  Those, as defined, do
  2216. not have persistent object information written to the OS2.INI file, nor a
  2217. handle exists for them  in INI files.  They live in a  nirvana of the WPS
  2218. address  space.   BUT!   WPS  writes  out  the  object  ID  to  the
  2219. PM_WorkPlace:Location and CheckINI chokes on it...
  2220.  
  2221. It's a minor nit but you may want to know about it.
  2222.  
  2223. Greg Czaja 545-4977  GregC at LEXGate 1994/04/26  11:51
  2224. ********************************************************************** 
  2225.  
  2226. From: Henk Kelder
  2227. To:  Gregc At Torolab6╨╢
  2228.  
  2229. Hello Greg,
  2230.  
  2231. GT>I  had a  funny  thing happening  to  me  recently:  one  of my  testers
  2232. GT>complained  that CheckINI  reports  an object  ID,  which my  application
  2233. GT>creates, as "invalid".
  2234.  
  2235. GT>What's funny about  it?  Well, the  object is there, with  a valid object
  2236. GT>ID.  However, it  is a descendant of WPTransient.  Those, as defined, do
  2237. GT>not have persistent object information written to the OS2.INI file, nor a
  2238. GT>handle exists for them  in INI files.  They live in a  nirvana of the WPS
  2239. GT>address  space.   BUT!   WPS  writes  out  the  object  ID  to  the
  2240. GT>PM_WorkPlace:Location and CheckINI chokes on it...
  2241.  
  2242. GT>It's a minor nit but you may want to know about it.
  2243.  
  2244. Yes, thank you.
  2245.  
  2246. Do you know if there is a way to recognize these WPTransient descendants?
  2247. Something Like descendents of WPAbstract always have a 1 or a 2 in the high
  2248. word of their (numerical) object ID and file system objects always have a 3
  2249. there.
  2250.  
  2251. Regards,
  2252. Henk Kelder
  2253.  
  2254. ___
  2255.  
  2256. * EMEA OS/2 Developer Assistance Program BBS
  2257. * gHostNet(0057002C01000000 2dbde340) reply to (0008037800580000 B4DB061D)
  2258. ********************************************************************** 
  2259.  
  2260. To: Henk Kelder
  2261.  
  2262. WPTransient (and descendant) handles start with 01 - so, it should be
  2263. easy. WPAbstracts are 02 - weren't they 00 on 2.0?, WPFileSystem is 03.
  2264.  
  2265. Thanks!
  2266.  
  2267. Dr Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/04/27  08:31
  2268. ********************************************************************** 
  2269.  
  2270. From: Henk Kelder
  2271. To:  Gregc At Lexvm2╨╢
  2272.  
  2273. Hello Gregory,
  2274.  
  2275. GL>WPTransient (and descendant) handles start with 01 - so, it should be
  2276. GL>easy. WPAbstracts are 02 - weren't they 00 on 2.0?, WPFileSystem is 03.
  2277.  
  2278. Well, WPAbstracts were 01 on 2.0, and some users (those who still
  2279. managed to use their INI's from 2.0) may still have WPAbstracts with 01.
  2280. Are you sure about the 01 for WPTransient ? If so, I wouldn't know how
  2281. to solve this little problem without running into problems for those users
  2282. with WPAbstracts with 01.
  2283.  
  2284. Furthermore, if, like you wrote in your previous message, WPTransient objects
  2285. are located somewhere in a black hole, and as far as I know only exist until
  2286. shutdown, there is no way to check if an OBJECTID of a WPTransient object
  2287. is valid. Am I right here ?
  2288.  
  2289. Regards,
  2290. Henk Kelder
  2291.  
  2292. ___
  2293.  
  2294. * EMEA OS/2 Developer Assistance Program BBS
  2295. * gHostNet(0057002C01000000 2dc08640) reply to (0008037800580000 B4DC2763)
  2296. ********************************************************************** 
  2297.  
  2298. To: Henk Kelder
  2299.  
  2300. Hm... this 01 inconsistency makes this quite difficult. Yes, I'm sure
  2301. about 01 being the handle type for transient objects - I can query it.
  2302.  
  2303. And you are right - since the PW_Workplace:Location is about the only
  2304. place you can find such an object ID, I don't think it can be fixed
  2305. - unless you rewrite CheckINI as a WPS process. How's about that?
  2306.  
  2307. I could help !-)
  2308.  
  2309. Gregory Czaja, Lexington 8-545-4977  GregC at LEXGate 1994/04/29  09:01
  2310. ********************************************************************** 
  2311.  
  2312.  
  2313. ΓòÉΓòÉΓòÉ 42. WPS hangs on TREE view ΓòÉΓòÉΓòÉ
  2314.  
  2315. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  2316. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2317.  
  2318.  When I open a tree view on any drive object my WPS hangs (cursor is
  2319.  moveable but no keyb or click action, requires power reset).  I have
  2320.  tried CHKDSK & deleting WP ROOT to no avail.  I am reluctant to re-
  2321.  store desktop (2 days old) as this is my ONLY problem.  Anyone been
  2322.  here??
  2323.  
  2324. Eric Weil - VM/VSE SysProg
  2325. ********************************************************************** 
  2326.  
  2327.  
  2328. ΓòÉΓòÉΓòÉ 43. Minimizing Icons... ΓòÉΓòÉΓòÉ
  2329.  
  2330. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  2331. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2332.  
  2333. It looks like when one minimizes a folder icon (say Oscar the Grouch)
  2334. the minimized icon at the bottom of the desktop is also Oscar.
  2335.  
  2336. However, with a program icon...
  2337. when it is minimized it becomes a (boring) OS2 window instead of the
  2338. Mailbox or whatever it is on the desktop (before it is started).
  2339.  
  2340. Is there a way to have the minimized program icon be the same as the
  2341. desktop icon?          (before a program is activated).
  2342.  
  2343. Thanks,
  2344. Patricia Manning
  2345. FDIC
  2346. ********************************************************************** 
  2347.  
  2348. No.  The two are not linked together.  Minimized Windows are something
  2349. that is created by the program itself.  WHen you run a program
  2350. it sets its own window title.  (or its own minimized window title)
  2351. The only reason folders are the same when minimized is because
  2352. Workplace Shell is the program that owns those windows and therefore
  2353. Sets the window title to be the same as the folder name.
  2354.  
  2355. Program objects just fire off applications and the applications
  2356. never query workplace to get the name of the object.  OS/2 windows
  2357. and DOS windows are the same way.  Once Workplace runs them, they
  2358. never call back to find out what the title of the object is.
  2359.  
  2360. --Mindy
  2361. ********************************************************************** 
  2362.  
  2363. [Reference to append at 17:35 on 94/05/02 by FDI2SA1 at HONE81 ] 
  2364.  
  2365. The icon minimize function in the original 2.0 would display the icon
  2366. that you had associated with the object/program when you minimized an
  2367. object to the Desktop or the Minimize Window Viewer, but that was
  2368. changed in the 2.0 SP so that the default icon for those type of objects
  2369. was displayed (i.e. OS/2, DOS, OS/2 Window, DOS Window, WinOS2, etc).
  2370. This is still the way that it works in the current version of 2.1 or
  2371. 2.11. This may be changed in a future release, I like it much better the
  2372. original way, but the change was made to correct a problem that had been
  2373. reported with memory usage in 2.0..
  2374.  
  2375. Alan Newman IBM / Boca Electronic Support Team
  2376. ********************************************************************** 
  2377.  
  2378. I absolutely agree; it is easier to visually decipher.
  2379.  
  2380. I know that the NetView GMF product manages to maintain its view
  2381. icons minimized so I can't think that it would be too complex to
  2382. reinstate.
  2383.  
  2384. Patricia Manning
  2385. FDIC
  2386. ********************************************************************** 
  2387.  
  2388.  
  2389. ΓòÉΓòÉΓòÉ 44. Setting argument field causes program icon to go dead ΓòÉΓòÉΓòÉ
  2390.  
  2391. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  2392. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2393.  
  2394. If I create a program icon with c:\os2\cmd.exe as the executable and "/c net
  2395. comm \\rndlib1" (no quotes) as the argument string, upon closing the settings
  2396. notebook the icon goes dead and becomes good for nothing except dragging to
  2397. the shredder.  It will not open and the popup menu no longer works.  I'm
  2398. running OS/2 2.1+SP.
  2399.  
  2400. If there is no argument, or the argument is set to simply "/c" then there is
  2401. no problem.  I'm assuming for the moment that this problem has something to do
  2402. with the double backslash in the argument string.  I glanced through the
  2403. online help and could find nothing about backslashes having special meaning.
  2404.  
  2405. Apparently I'm going to have put the command in a batch file because the
  2406. program object cannot tolerate the argument string.  Is there a simpler way to
  2407. get this to work?
  2408.  
  2409. Ralph Scowden (res@sii.com)
  2410. ********************************************************************** 
  2411.  
  2412. I tried the same scenario on 2.1GA and there is something fishy about it:
  2413.  
  2414. I can  see the objects  settings correctly, I  can force the  Settings to
  2415. open with  wpSetup OPEN=SETTINGS  but an  attempt to  wpOpen/wpViewObject
  2416. causes a trap.  And the object wouldn't display the context menu at all.
  2417.  
  2418. It definitely qualifies for a problem report...
  2419.  
  2420. Gregory Czaja, Lexington 8-545-4977  GregC at LEXGate 1994/05/03  15:47
  2421. ********************************************************************** 
  2422.  
  2423.  
  2424. ΓòÉΓòÉΓòÉ 45. maj/min version in csc ΓòÉΓòÉΓòÉ
  2425.  
  2426. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  2427. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2428.  
  2429. Ref:   None
  2430.  
  2431. From: Mario Semo
  2432. To:  Ibm
  2433.  
  2434. In the
  2435. Workplace Shell Programming course ... by skill dynamics
  2436. there is a note on page 13.6
  2437.  
  2438. WPS requires major and Minor Version to be one and two (for some reasons)
  2439.  
  2440. Questions:
  2441.  
  2442. WHERE is this official documented?
  2443. WHY do the RedBook Samples use 1,1
  2444. WHY do the Tutorial Sample on the DevCon CD use 1,1
  2445. All other samples (WpCar,...) use 1,2
  2446. IS it necessary to have other IBM internal infos to write clean WPS code?
  2447.  
  2448. mario.
  2449.  
  2450. ___
  2451.  
  2452. * EMEA OS/2 Developer Assistance Program BBS
  2453. * gHostNet(0057003101000000 2dc68310)
  2454. ********************************************************************** 
  2455.  
  2456. Mario, using SOM to create a new WPS class, any of the following will
  2457. produce an error: 1) Major Version not equal to 1. 2) Minor Version
  2458. equal to 0. This is a known problem and will be fixed in future
  2459. releases. For now, the official documentation would be the SOM
  2460. reference. So as long as the above two points are taken into
  2461. consideration, you should not have a problem. If you do, you might want
  2462. to send IBM PSP support the test case.
  2463.  
  2464. Anil Kommareddi(IBM) Boca Electronic Support Team
  2465. ********************************************************************** 
  2466.  
  2467.  
  2468. ΓòÉΓòÉΓòÉ 46. Disabling Ctrl-Esc Alt-Tab Keys ΓòÉΓòÉΓòÉ
  2469.  
  2470. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  2471. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2472.  
  2473. Is there a way to disable these keys.  We have a communications
  2474. system on the OS/2 platform, with many background tasks working.
  2475. We would like the user to STAY in the Ap, and not fire off a DVM,
  2476. switch to another session, or cancel anything that is running
  2477. via the window list.  Perhaps there are utilities or rexx.cmds
  2478. that can address this.  Any ideas would be helpful.  Thanks.
  2479.  
  2480. Gary Wesselhoff Ace Hardware Corporation
  2481. Voice (708) 990-6639    Fax (708) 990-0306
  2482. ********************************************************************** 
  2483.  
  2484. Gary, there is no way to disable the CTRL-Esc or ALT-TAB sequences. As fo
  2485. preventing the user from switching to another session, there is a way to
  2486. preventing the user from switching to another session, there is a way to
  2487. do it.This works only for an OS/2 application. Edit the CONFIG.SYS to set
  2488. the RUNWORKPLACE to CMD.EXE instead of PMSHELL.EXE. When you boot up
  2489. now, you go to the command prompt directly. Run you application from
  2490. there. The user will not be able to switch to another session. After the
  2491. task is done, you can load the OS2 desktop by executing PMSHELL.EXE from
  2492. the command prompt. See if that helps.
  2493.  
  2494. Anil Kommareddi(IBM) Boca Electronic Support Team
  2495. ********************************************************************** 
  2496.  
  2497. Thanks for your reply, I have played around with this, but it seems
  2498. to disable multi-tasking...(although without the window list I can't
  2499. be sure). I've heard that Deskman/2 can intercept Ctrl-Esc, and that
  2500. may be a start.  It's a learning curve.  As they say "don't sweat it,
  2501. it's only zeros and ones."  Thanks again.
  2502.  
  2503. Gary Wesselhoff Ace Hardware Corporation
  2504. Voice (708) 990-6639    Fax (708) 990-0306
  2505. ********************************************************************** 
  2506.  
  2507. You might try looking at the utility "The Secure Workplace for OS/2,"
  2508. this application will allow you to control access to the "Window List"
  2509. and most other functions, to include the ctrl-alt-del key function as
  2510. well.  This app is produced by Syntegration at tel 909-464-9450.
  2511.  
  2512. Alan Newman IBM / Boca Electronic Support Team
  2513. ********************************************************************** 
  2514.  
  2515. [Reference to append at 18:08 on 94/05/05 by ACEN009 at HONE82 ] 
  2516.  
  2517. Gary,
  2518.  
  2519. Our DeskMan/2 package does intercept CTRL-ESC, but we do not disable the
  2520. other key sequences that you expressed an interest in at this time.  However,
  2521. if you are interested, please drop us a note on the DEVTECH CFORUM or give
  2522. us a call at (803) 790-9230 and we'll discuss it.
  2523.  
  2524. We can control and restrict the WPS even further, and we'd be happy to
  2525. discuss it with you at your convenience.
  2526.  
  2527. Thanks!
  2528.  
  2529. Evan Bergman - Development Technologies, Inc.  ╨½DeskMan/2 Tech. Support|
  2530. ********************************************************************** 
  2531.  
  2532. Thanks for the help Evan.  Deskman does trap the CTRL-ESC keys
  2533. very effectively, but unfortunately the alt tab key will bring the
  2534. Viewman/2 to the front, that can easily be closed (and therefore
  2535. canceling the trapping of CTRL-ESC).  Nothing is easy eh?  I've
  2536. heard that in the next version of Deskman/2, Viewman/2 can be run
  2537. from a command line.  This may be the ticket. Deskman is a fantastic
  2538. product.
  2539.  
  2540. To Alan Newman, thanks for the tip, I'll look into that product too.
  2541. Gary Wesselhoff Ace Hardware Corporation
  2542. Voice (708) 990-6639    Fax (708) 990-0306
  2543.  
  2544. ********************************************************************** 
  2545.  
  2546.  
  2547. ΓòÉΓòÉΓòÉ 47. upgrade to CSET++ 2.1 ΓòÉΓòÉΓòÉ
  2548.  
  2549. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  2550. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  2551.  
  2552. Ref:   None
  2553.  
  2554. From: Mario Semo
  2555. To:  All
  2556.  
  2557. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  2558. !!!     WARNING for ALL WPS developers              !!!!!
  2559. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  2560.  
  2561. if you want to upgrade to CSET++ 2.1 and you have WPS objects installed
  2562. on your system which depent on CSET++ DLL's (ICLUI,CC,CRT)
  2563. Γòócan only happen if you use inhouse versions of the WPS objects, shippable
  2564. objects do NOT depend direct on CSET++ DLLs, but depent on DLLRenamed
  2565. DLL's. So this can happen if you have testobjects installedΓöÿ.
  2566.  
  2567. problem 1: if the objects are on the desktop or in a open folder:
  2568. Your system will probably NOT boot anymore.
  2569. This is the MOST COMPLEX problem. In this case you cannot deinstall
  2570. (deregister) the WPS Classes, from OS/2 itself!!!
  2571.  
  2572. problem2 : all objects are in subfolders, so are dormant at bootup.
  2573. The problem arives, if you try to open the Template Folder. the folder
  2574. opens, nothing is displayed, and the WPS is dead.
  2575.  
  2576. Workaround : deregister all WPS objects which depends on CSET++ DLL's
  2577. before upgrading to 2.1. ReLink your objects, and install them again later.
  2578.  
  2579. Note : IMHO this problem should be stated in a CSET++ Readme file.
  2580.  
  2581. mario semo, LC/32 development, KirchnerSoft, Vienna, Austria
  2582. ___
  2583.  
  2584. * EMEA OS/2 Developer Assistance Program BBS
  2585. * gHostNet(0057003101000000 2dc823c8)
  2586.