home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega Top 1
/
os2_top1.zip
/
os2_top1
/
INFO
/
DIVSINFO
/
FORUM
/
OS2WPS.INF
(
.txt
)
< prev
Wrap
OS/2 Help File
|
1994-05-10
|
111KB
|
2,586 lines
ΓòÉΓòÉΓòÉ 1. About this forum ΓòÉΓòÉΓòÉ
TALKLINK
Welcome to the world of TalkLink, a unique, new conferencing
service offered by IBM. Using TalkLink, you can "talk" to
customers, IBMers and personnel of our many affiliates
around the world - anywhere, anytime. TalkLink is designed
for people like yourself, who want to get the most out of
their investment in computing products and services.
TalkLink "links" you directly into the development and sup-
port communities of customers, IBM and affiliates. Our goal
is to help you be as effective as you can with access to
many conferences, vast databases and rich libraries.
HIGHLIGHTS
TalkLink provides the following capabilities for customers
to review information electronically, submit questions re-
quests and receive answers information.
- Conferences and forums -- question and answer bulletin
boards for you to ask questions and help others with a
wide variety of products and services. Items posted on
this bulletin board are shared between BBS users, IBM
personnel and affiliates worldwide.
- Customer-to-customer messaging -- customers can send
private messages to each other.
- Support -- customers can submit or view problem re-
ports. These entries will be responded to by the
conference/forum owner, normally within a certain time
period. Users can also place orders for product related
materials.
- Software library -- downloads application programs and
uploads contributions.
- News and announcements -- contains recent information
regarding products and services.
- Modes of operation:
- Interactive -- Users are connected online to
TalkLink while using its facilities.
- Batch -- Users can download the forums to their
personal computer and read the entries offline.
Users can also respond offline and the entries will
be saved and sent to the host the next time the user
is connected in batch mode. Initially, this facil-
ity is available for OS/2 (R) users only.
- Access:
1
- Advantis -- local call from most cities within the
US.
- Internet -- telnet avaialable now, full ftp soon.
SEARCH SERVICE
- Search IBM databases via interactive mode -- This search
facility includes a large question and answer database
of items, IBM System Center Flashes, and IBM's prob-
lem management libraries. This database contains infor-
mation about problems and fixes. Not all general
discussion forums have related information in these da-
tabases.
TALKLINK FEES CHARGES
- $15.00 Registration Fee (one-time charge for each user
registration)
- $18.00 Monthly Availability Charge (includes unlimited
hourly service)
- This can be charged to a credit card or invoiced (for an
additional administrative fee of $7.00 for each monthly
invoice).
HOW TO ORDER TALKLINK
Call 1-800-547-1283 to sign up for TalkLink.
Outside of the United States please contact your
local IBM sales office for availability and access.
**********************************************************************
ΓòÉΓòÉΓòÉ 2. Introduction ΓòÉΓòÉΓòÉ
===== OS2WPS CFORUM created at 01:46:18 on 92/04/08 GMT (by HOPKINS at AUSVM8)
IBM UNCLASSIFIED
------------
The information in this forum is considered by IBM to be
external and may be shared by everyone who is given access.
This forum is shared with the internal IBM employee conferences.
Forum: OS2WPS CFORUM
Forum subject: OS/2 Version 2 Workplace Shell
This FORUM is provided as a conferencing tool to promote
the discussion of issues, questions, and problems pertaining
to OS/2 Version 2 Workplace Shell.
Contributions must not contain confidential or proprietary information.
The Material in this forum is shared with the internal IBM employee
conferences.
The Material in this forum is considered by IBM to be proprietary and
your use of it is subject to the following conditions.
IBM grants you a non exclusive, and paid-up right and license to use
(internally only) any Material distributed to the TalkLink Conferencing
Service. You shall not reproduce, prepare derivative work based upon,
or distribute (internally or externally), any Material distributed to
the TalkLink Conferencing Service.
You grant to us a non exclusive, and paid-up right and license to (1)
use, execute, display, reproduce, and prepare and have prepared
derivative works based upon, and distribute (internally and externally)
any Material you distribute to the TalkLink Conferencing Service and (2)
authorize others to do any, some or all of the foregoing.
Contributions must not contain confidential or propriety information.
All subscribers are required to abide at all time by the conference rules
described in the Bulletin Board Rules under "News and Announcements".
All IBM personnel are required to abide at all times by the IBMPC RULES
and the IBM Business Conduct Guidelines. IBM personnel will read the
CUSTOMER FORUM RULES in IBMPC RULES before contributing.
Contributions violating these will be deleted by the CFORUM Owner or
their delegate, and in some cases by an IBM conference Administrator.
The OS2BBS CFORUM is where anyone may raise concerns regarding rules
violations found in this and other CFORUMS.
The IBM Administrator of this forum is:
Name: Paul Cheatham
Mailing Address: Boca Electronic Support Team ( BEST )
1000 N.W. 51st Street
Internal Zip 1426-012/W2030
Boca Raton, FL 33429
IBM Node/Userid: BCRVM1/CHEATHAM
TalkLink Userid: LNK9/LNK9030
See OS2WPS 931CFORU on OS2BBS for appends to 92/12/02 (4463 lines)
See OS2WPS 932CFORU on OS2BBS for appends to 93/04/08 (4566 lines)
See OS2WPS 933CFORU on OS2BBS for appends to 93/06/29 (4572 lines)
See OS2WPS 934CFORU on OS2BBS for appends to 93/08/09 (4451 lines)
See OS2WPS 935CFORU on OS2BBS for appends to 93/10/19 (4650 lines)
See OS2WPS 941CFORU on OS2BBS for appends to 93/11/19 (4450 lines)
..... 4450 lines pruned at 05:07:41 on 93/11/19 GMT (by OS2 at YKTVMV) .....
..... 5102 lines pruned at 08:56:28 on 04/26/94 by MLKSERV0 for LNK9032
See OS2WPS AR942080 file for appends from 93/11/19 to 94/02/09
**********************************************************************
ΓòÉΓòÉΓòÉ 3. Drag and Drop to Desktop Setting ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
When I D&D my OS/2 windowed session icon and my DOS windowed
session to the "Actions on menu: Primary pop-up menu" in the Menu
tab of the Desktop Settings, I experience a problem.
I have an ?:\AUTOEXEC.CMD file and my CONFIG.SYS contains
SET OS2_SHELL=D:\OS2\CMD.EXE /k d:\AUTOEXEC.CMD
When I launch either a full screen or windowed OS/2 session from
its respective icon, the AUTOEXEC.CMD file is executed first, as
I would expect. However, if I D&D this same icon onto the Desktop
Menu Settings, the OS/2 windowed session is launched but the
AUTOEXEC.CMD is ignored.
If I use "Create another' to add an OS/2 windowed session to the
menu settings, using a program name of d:\AUTOEXEC.CMD, the
session starts and ends (i.e. no /k option). Adding any value
beyond the name is rejected as an invalid name (i.e. parameters
don't seem to be allowed).
Anyone have any thoughts?
Dick Goran - CIS 72200,347
author "REXX Reference Summary Handbook"
**********************************************************************
ΓòÉΓòÉΓòÉ 4. wpInsertPopupMenuItems troubles ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Now that the lan programming is in remission I thought I'd try my hand at
WPS programming. Things went fine for a while, but I've hit a snag. Please
review this problem and give me any hints you might have:
_wpInsertPopupMenuItems(somSelf, hwndMenu, iPosition, hmod, ID_MENU,
WPMENUID_PRIMARY);
The above method is being called in my wpModifyPopupMenu and failing with rc=0.
Trials:
1. iPosition is as passed to my modify method. Have tried 0 in this field.
Have tried calling parent method before/after. No dice.
2. hmod is a class instance variable that is also used in a query icon
routine. I have also verified this value through IPMD.
3. ID_MENU is in my resource file. Resource compile goes without a hitch
as does my addition of the .res to the .dll.
4. WPMENUID_PRIMARY has also been tried with a constant "0".
This is a WPFolder subclass. I'm using CSet++ 2.01 with the 2.1 toolkit.
I didn't have that much hair to start with and I have less now. Please
help me before my brother starts calling my "baldy"!
Joe R Wyatt USAA, San Antonio, Tx
**********************************************************************
> 4. WPMENUID_PRIMARY has also been tried with a constant "0".
What is WPMENUID_PRIMARY? I've managed to add menu items by using
values like WPMENUID_OPEN, WPMENUID_HELP, etc. and varying the
iPosition.
Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/02/09 12:11
**********************************************************************
It's my understanding that, while WPMENUID_OPEN and WPMENUID_HELP allow
access to the submenu items of these major topics, the WPMENUID_PRIMARY
entry allows the addition of the major topics. I may be wrong here. I'm
wrong somewhere. That's for sure!
Joe R Wyatt USAA, San Antonio, Tx
**********************************************************************
Yes, you are right about the WPMENUID_OPEN & Co.
I think, there was(is?) a bug in WPS which prevents new menu items
from being inserted any other place than at the bottom of the current
menu, i.e. you have to specify the 0 and use the current iPosition.
Example: _wpInsertPopupMenuItems(somSelf, hwndMenu, iPosition,
MyQueryModuleHandle(),
MY_CLOSE_MENU,
0);
Adds a menu item (as the last one) to the main context menu.
Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/02/09 12:39
**********************************************************************
I've called it with the iPosition passed in (which is pretty much
ignored anyway) and using WPMENUID_PRIMARY with no problems at all.
Try putting a WinLoadMenu before it just to see if the menu is indeed
in the hmod.
--Mindy
**********************************************************************
[Reference to append at 17:37 on 94/02/09 by GREGC at LEXVM2 ]
That's the way I thought it was supposed to work. I have not been successful
at creating any additions to the context menu yet, though. I'm really stuck
on this one. Looks simple enough, but the desired result eludes me. Any
further ideas?
Joe R Wyatt USAA, San Antonio, Tx
**********************************************************************
[Reference to append at 18:08 on 94/02/09 by S6GHGMJP at HOUVMSCC ]
I'll give it a shot, Mindy, and let you know.
Joe R Wyatt USAA, San Antonio, Tx
**********************************************************************
[Reference to append at 18:08 on 94/02/09 by RATE052 at OS2CUST ]
Except the other things mentioned by Mindy (hMod and the menu correctly
bound to the DLL), you may want to check the ID itself - I burn myself
quite often specifying the item ID instead of the menu ID...
Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/02/09 15:10
**********************************************************************
WinLoadMenu comes up with rc=0. Which, I assume, means the menu is not in
the dll. How can my icon, which is defined in the same .rc file as the menu,
be in the dll with out the menu?
Joe R Wyatt USAA, San Antonio, Tx
**********************************************************************
The stupid ResourceCompiler can do that. Did you include the proper
header files? Since you are using WPMENUID... you need wpobject.h, too.
RC won't even complain - it will just ignore the menus.
Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/02/10 09:34
**********************************************************************
Gregory, you have made me a happy kind of guy. This is not a problem that I
would have found for quite a while. I had included a set of os/2 headers
thinking that wpobject.h would get included on down the line somewhere.
Thanks to you and Mindy, I can now sleep at night again.
Joe R Wyatt USAA, San Antonio, Tx
**********************************************************************
Anytime, just post a message every time you want to sleep at night !-)
Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/02/10 14:43
**********************************************************************
ΓòÉΓòÉΓòÉ 5. Creating desktop objects ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I want to create an icon for EACH *.INF file in a set of directories,
and add them to MANUALS folder. How can I do that easily and speedy?
Dario de Judicibus * The Reuse Shop * Quality Programs * Rome NS Lab (I)
----------------------------------------
Voice : (+39.6) 596.62531 * FAX : (+39.6) 596.62872
IBM VNET : DEJUDICI at ROMEPPC * IBMMAIL : ITIBM98W
Internet : ddj@vnet.ibm.com * Bitnet : ddj at vnet
**********************************************************************
To: Dario de Judicibus * The Reuse Shop
> I want to create an icon for EACH *.INF file in a set <
> of directories, and add them to MANUALS folder. How <
> can I do that easily and speedy? <
Do you really mean "create" an icon or are you referring to
associating an icon to each directory?
If the latter, then you can do it with a simple REXX program:
/* TEST88.CMD - Assign an icon to .INF files */
icon_file = '...' /* fill in name */
/*---------------------------*/
/* Build table of .INF files */
/*---------------------------*/
Call SysFileTree '?:\..\*.inf', stem, 'F' /* fill in name */
if stem.0 ╨║> 1 then
do
say 'Unable to locate .INF files'
exit
end
do i = 1 to stem.0
parse var stem.i file_date,
file_time,
file_size,
file_attr,
file_name
file_name = STRIP(file_name)
call SysSetIcon file_name, icon_file
end
exit
Dick Goran - CIS 72200,347
author "REXX Reference Summary Handbook"
**********************************************************************
No, what I want to do is different. I want to create a folder on my
desktop which contains a SHADOW of any INF file in my system, wherever
they are located. I will call that folder MANUALS. I need an automated
procedure to do that. I'm quite good in CMS REXX, but not really expert
of OS/2 REXX. Is there a way (1) to locate all INF files in all volumes,
and (2) to create a shadow of each file in a previously created folder?
Dario de Judicibus * The Reuse Shop * Quality Programs * Rome NS Lab (I)
----------------------------------------
Voice : (+39.6) 596.62531 * FAX : (+39.6) 596.62872
IBM VNET : DEJUDICI at ROMEPPC * IBMMAIL : ITIBM98W
Internet : ddj@vnet.ibm.com * Bitnet : ddj at vnet
**********************************************************************
Not exactly, but pretty close (creating a folder with all VIEW objects
for all your INF files; folder name "All IPF's"):
request creinfs from leshek at lexvm2
Leshek Fiedorowicz (CIS#74170,2007)
**********************************************************************
[Reference to append at 08:26 on 94/02/10 by DEJUDICI at ROMEPPC ]
To: Dario de Judicibus
> Is there a way (1) to locate all INF files in all <
> volumes, and (2) to create a shadow of each file in a <
> previously created folder? <
1) Use SysDriveMap() to provide a list of the drives and then use
SysFileTree( drive ΓòæΓòæ '*.INF', stem, 'FS' ) for each appropriate
drive to obtain a list of the .INF files.
2) I will assume that the folder already exists on the Desktop and has
an OBJECTID of <MANUALS>. For each new .INF file, you can use the
following:
inf_full_path_name = '...'
location = '<MANUALS>'
class = 'WPShadow'
title = FILESPEC( 'N', inf_full_path_name ) ΓòæΓòæ '0A'x ΓòæΓòæ 'Manual'
setup =,
'OBJECTID=<' ΓòæΓòæ title ΓòæΓòæ '>;' ΓòæΓòæ,
'SHADOWID=' ΓòæΓòæ inf_full_path_name ΓòæΓòæ ';' ΓòæΓòæ,
''
call SysCreateObject class, title, location, setup, 'REPLACE'
Hope this is enough to get you started.
Dick Goran - CIS 72200,347
author "REXX Reference Summary Handbook"
**********************************************************************
Yes, thank you.
Dario de Judicibus * The Reuse Shop * Quality Programs * Rome NS Lab (I)
**********************************************************************
[Reference to append at 02:05 on 94/02/11 by DEV4672 at HONE82 ]
Dick
How about opening the .INF and putting the 40 odd bytes starting at 6B
into the title? Shoot a version check and a translate should get rid of the
IPF version change and non display title problems. I remember a MAKEBOOK.CMD
that did most of this but used a table to put titles on the objects. Never
did understand that.
E Ilsley
**********************************************************************
To: E Ilsley - Append created on 94/02/14 at 15:13 PST
> How about opening the .INF and putting the 40 odd <
> bytes starting at 6B into the title? Shoot a version <
> check and a translate should get rid of the IPF <
> version change and non display title problems. <
Subject to the displacement dependency, it would work. The VERIFY()
function would be the way of finding the end od the printable string.
Dick Goran - CIS 72200,347
author "REXX Reference Summary Handbook"
**********************************************************************
ΓòÉΓòÉΓòÉ 6. Unaccepted Appends - Again ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
To: Hank Henderson
Below are the append headers and Notes I received back from TOOLSRUN
about them not being accepted. These 3 appends were uploaded via
FORAUP amongst a a group of 12. Only these 3 kicked back.
This is the same problem I have seen before. The reported reference
time does not match the reference time in the append I was trying to
upload.
Note that the append in FREESHAR CFORUM was a message to you. <g>
Dick Goran - CIS 72200,347
author "REXX Reference Summary Handbook"
****************************************
Subject: INI cleanup
Ref: Append at 17:53:05 on 94/02/10 GMT (by TBCNJBM at OS2CUST)
V01 Note
From: OS2 --HONE80 Date and time 02/10/94 15:28:42
========================================
Date: 10 Feb 1994, 23:28:01 GMT
From: TOOLSRUN 6.7 (level 1) OS2 at HONE80
To: DEV4672 at HONE82
OS2BBS: There is no append in OS2PRG CFORUM at 04:12:03 on 94/02/10 GMT
to modify. (Request returned.)
E N D O F N O T E
****************************************
Subject: Welcome
Ref: Append at 17:57:35 on 94/02/10 GMT (by LNK1SM7 at HONE82)
V01 Note
From: OS2 --HONE80 Date and time 02/10/94 15:28:11
========================================
Date: 10 Feb 1994, 23:27:31 GMT
From: TOOLSRUN 6.7 (level 1) OS2 at HONE80
To: DEV4672 at HONE82
OS2BBS: There is no append in FREESHAR CFORUM at 04:12:03 on 94/02/10 GMT
to modify. (Request returned.)
E N D O F N O T E
****************************************
Subject: Creating desktop objects
Ref: Append at 08:56:26 on 94/02/10 GMT (by DEJUDICI at ROMEPPC)
V01 Note
From: OS2 --HONE80 Date and time 02/10/94 15:27:44
========================================
Date: 10 Feb 1994, 23:27:03 GMT
From: TOOLSRUN 6.7 (level 1) OS2 at HONE80
To: DEV4672 at HONE82
OS2BBS: There is no append in OS2WPS CFORUM at 04:12:03 on 94/02/10 GMT
to modify. (Request returned.)
E N D O F N O T E
****************************************
**********************************************************************
ΓòÉΓòÉΓòÉ 7. Minimized Icon Viewer ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Every time I startup my machine the 'Minimized Icon Viewer' is open
and I would like to avoid it.
I checked my config.sys and my startup folder and everything seems to
be fine. I suppose that there is an info stored somewhere in the
OS2(SYS).INI file (I installed on this machine a lot of beta ..)
but I can't find where ...
Can somebody help me ?
Thanks in advance.
Paolo Brizzi
**********************************************************************
I assume you mean you don't want it to open when you boot. If you
close the minimized window viewer before shutting down and it is
not in your startup folder, it could be a problem with your
ini file not getting written to. goto the os2 directory and type
attrib os*
make sure there is a file called os2.!!!. If not, take the readonly
bit off os2.ini and reboot. Close the minimized window viewer,
shutdown and reboot again. See if that fixes it.
If the .!!! file WAS there, I can't think of why the viewer
would keep opening. Unless it's in your startup folder and you
just don't see it.
--Mindy
**********************************************************************
ΓòÉΓòÉΓòÉ 8. Lost contents of OS/2 System Folders ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Help,
I don't know how it happened, but on a friends workstation (not mine, really)
they lost the contents of all the folders inside of the OS/2 System icon.
The icon is there and when you open it you see the folders but when you open
the folders (ie. Productivity, Command Prompts etc..) they open up empty.
I've tried running RECREATE.CMD, no luck. Does anyone have any ideas?
Tim Aldieri - The Travelers, Hartford, CT
**********************************************************************
Try Recreate.CMD again. But before doing so, use any editor to modify
line 27 (or 26, depending on version). The current contents of it is:
If SysCreateObject(object,title,location,setup,'Update') = 0
change it to:
If SysCreateObject(object,title,location,setup,'Replace') = 0
Remember to change it back to 'Update' once you finished. And be
careful, accidentally, not to recreate your Desktop !-)
Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/02/16 08:25
**********************************************************************
> Try Recreate.CMD again. But before doing so, use any editor to modify
> line 27 (or 26, depending on version). The current contents of it is:
>
> If SysCreateObject(object,title,location,setup,'Update') = 0
>
> change it to:
>
> If SysCreateObject(object,title,location,setup,'Replace') = 0
>
> Remember to change it back to 'Update' once you finished. And be
> careful, accidentally, not to recreate your Desktop !-)
>
> Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/02/16 08:25
Thanks, It worked like a charm. It was much appreciated. 8-}.
Tim Aldieri - The Travelers, Hartford, CT
**********************************************************************
ΓòÉΓòÉΓòÉ 9. How to recover hidden folders? ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
When a folder is marked 'Hidden' in Drives, it disappears from display!
There is now way to get it back, or to 'unhide' it...
It seems like a bug or something was missed in OS/2?
Francis.
**********************************************************************
Open the setting of the drive it is contained in and go to the
include page. If you delete the entry there, the hidden folders
should appear. Or add an entry to include hidden files.
--Mindy
**********************************************************************
ΓòÉΓòÉΓòÉ 10. Sizing a folder with REXX ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Is it possible to create a folder using REXX and
specifying the folder's size and position? We would
also like the REXX program to open the folder minimized
if that is possible. Thanks.
Pat Malneritch, Delta Air Lines
**********************************************************************
To: Pat Malneritch, Delta Air Lines - Append created on 94/02/17 at 09:44 PST
> Is it possible to create a folder using REXX and <
> specifying the folder's size and position? We would <
> also like the REXX program to open the folder <
> minimized if that is possible. <
Yes. Starter info for doing this is contained in a file by Mike Lamb
of IBM Yorktown that he released quite a while ago. It is generally
found on BBSs as CRTOBJ.ZIP.
The only place that all of this info is defined is in the second
edition of our HAndbook due out next month. Details of its
availability will be posted here in the OS2REXX CFORUM and in the
TOOLS section of the Software Library.
Here is an example to get you started. It presumes that REXXUTIL has
been registered.
/* Create WPFolder & WPProgram objects */
/*------------------------------------------------------------------------*/
/* */
/* WPFolder Object */
/* */
/*------------------------------------------------------------------------*/
wpf_class = 'WPFolder'
wpf_location = '<WP_DESKTOP>'
wpf_object_id = '<TESTFOLD>'
wpf_title = 'TEST FOLDER'
wpf_setup_string = ,
'OBJECTID=' ΓòæΓòæ wpf_object_id ΓòæΓòæ ';' ΓòæΓòæ,
'title=Test' ΓòæΓòæ,
'0A'x ΓòæΓòæ,
'Folder' ΓòæΓòæ,
'0A'x ΓòæΓòæ,
'Object;' ΓòæΓòæ,
'iconpos=30,90;' ΓòæΓòæ,
'iconviewpos=01,10,50,80;' ΓòæΓòæ,
'detailsview=MINI;' ΓòæΓòæ,
''
call SysCreateObject wpf_class,,
wpf_title,,
wpf_location,,
wpf_setup_string,,
'FAIL'
if RESULT = 1 then
do
say wpf_title 'was successfully created'
end
else
do
say wpf_title 'was not created, return code = ' ΓòæΓòæ,
RESULT
say wpf_setup_string
exit
end
/*------------------------------------------------------------------------*/
/* */
/* WPProgram Object */
/* */
/*------------------------------------------------------------------------*/
wpp_class = 'WPProgram'
wpp_location = '<WP_DESKTOP>'
wpp_object_id = '<TESTPROG>'
wpp_title = 'TEST^PROGRAM'
wpp_setup_string = ,
'OBJECTID=' ΓòæΓòæ wpp_object_id ΓòæΓòæ ';' ΓòæΓòæ,
'ICONPOS=40 90;' ΓòæΓòæ,
'ICONFILE=...;' ΓòæΓòæ,
'EXENAME=...;' ΓòæΓòæ,
'PROGTYPE=...;' ΓòæΓòæ,
''
call SysCreateObject wpp_class,,
wpp_title,,
wpp_location,,
wpp_setup_string,,
option
if RESULT = 1 then
do
say wpp_title 'was successfully created'
end
else
do
say wpp_title 'was not created, return code = ' ΓòæΓòæ,
RESULT
say wpp_setup_string
exit
end
Dick Goran - CIS 72200,347
author "REXX Reference Summary Handbook"
**********************************************************************
Thanks, Dick! We'll be sure to be ordering you handbook
when it's available!!
Pat Malneritch, Delta Air Lines
**********************************************************************
ΓòÉΓòÉΓòÉ 11. Results Folder Created (HOB AT AUSVM8) ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
APNDMOVEd: From OS2BBS CFORUM
A Results Folder was created and contains such icons as the DOS Window
and DOS Full Screen among many, many others. Some of these icons do
not show up on the Workplace Shell. Therefore, I must go into this
Results Folder to execute them. Please give me the STEPS to go thru
to get rid of the Results Folder and get these icons back on the Work-
place Shell so that they are there when I boot up OS/2, Version 2.1. I
have been told that I can delete the Results Folder. If I do this I
do not know how to get these icons back. What is the simplest thing
I can do? I am a first time user of OS2BBS. Thanks. Bud Bradford,
HOB @ AUSVM8.
**********************************************************************
Open the results folder, highlight all the icons you want to be on the
desktop, drag and drop the objects to the desktop ...
Keith A. Blake (The OS/2 Mole) V: (513) 983-8119 (USPGC9GC/IBMMAIL)
**********************************************************************
ΓòÉΓòÉΓòÉ 12. Results Folder Plus a New Question for You or Anyone Else ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Mr. Keith A. Blake (OS2 Expert),
Thanks a lot for your help. I will try what you suggested.
I have another question that is in OS2HELP (I believe). I
go into more detail there, but the basic question is what is
the LEAST COST, FASTEST WAY to develop a GUI for a major PC
application that is written in FORTRAN (85%), C (15%) and uses
about 150 panels/screens that were developed by me using IBM's
EZ-VU development facility (it's like ISPF for the mainframe).
I have some information on Application Manager and EASEL. Could
REXX (VX-REXX) be used for this? I am using WATCOM's FORTRAN
compiler, Version 9.5 for the FORTRAN and Borland's C and C++
compiler. I know that it would help if all of the code were in
FORTRAN, but this is an application that I started working on before
there was a C language. If I could create a good-looking GUI that
allowed me to use my FORTRAN code that would help a great deal. I
already have lots of years in this application and I'm working on
the whole thing by myself in the evenings and on weekends. Thanks
to you Keith or anyone else who can help me. I would like to have
some options to choose from relative to time vs. cost and so forth
(if that's not asking too much!).
H. O. (Bud) Bradford
Austin, Texas
HOB AT AUSVM8 or
T/L 793-8094 or
512-823-8094 or
512-459-8999 or
512-459-8999 (FAX)
########
**********************************************************************
Bud,
Thanks for the complement, unfortunately (for me) my area of
"expertise" does not extend to application/programming development.
There is a PM specific programming conference that you may try your
question in as well and there is a generic rexx conf and I believe
VX-REXX has a specific cforum as well. There are several more programming
cforums as well and I'm sure you'll get good answers if you post in
them as well.
Keith A. Blake (The OS/2 Mole) V: (513) 983-8119 (USPGC9GC/IBMMAIL)
**********************************************************************
ΓòÉΓòÉΓòÉ 13. How do I remove an available type ? ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Somehow I accidentally added a new available type to
my OS/2 system. How can I remove it? When I
open the setttings/Association notebook, it is in
my available type list as "*.ATL". Where
are these stored?
I think I added it by misusing the PROGREF program?
Marvin Lichtenthal
Emeryville, Ca.
marvinl@netcom.com
**********************************************************************
To: Marvin Lichtenthal - Append created on 94/02/21 at 20:51 PST
> Where are these stored? <
There are association entries stored in OS2.INI but I'm not sure how
the data is setup. Grab a copy of LISTINI.ZIp from the Software
Library here and it will produce a text file of your .INIs that you
can look at.
Dick Goran - CIS 72200,347
author "REXX Reference Summary Handbook"
**********************************************************************
ΓòÉΓòÉΓòÉ 14. Restoring Icons to Workplace from Results Folder ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Keith,
I wasn't able to bring the icons from the Results folder to
the Workplace. I did "highlight" the icon in the Results folder.
I tried to bring it out, but it didn't show up on the Workplace.
Thanks for your ideas on the various conferences related to
converting my OS2/DOS application to a GUI under OS/2.
I will look into them. Thanks.
Bud Bradford
Austin, Texas
T/L 793-8094
HOB AT AUSVM8
512-823-8094
**********************************************************************
ΓòÉΓòÉΓòÉ 15. Help: Calling an object's class functions ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This APPEND was deleted at 02:33:42 on 02/23/94 EST.
**********************************************************************
ΓòÉΓòÉΓòÉ 16. Limitation of the Network Printer Object ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
When you create a network printer object on your desktop, you have the
opportunity connect that network printer object to a logical port. But
just one logical port. The fact that you can net use multiple lpt ports
(or capture, for the Netware users) to a single network queue is not
reflected in the way the desktop network printer object works.
And if you create a second network printer object on your desktop and
connect it to the same network queue, it acts like a shadow as far as the
lpt port assignment goes. If you change ports on one of your network
printer objects, the other one gets its port changed also.
If this is not the case, I'd like to know. But it looks to me like
the the WPS is trying to force a one-to-one relationship on to something
that is naturally a many to one function. This should be fixed.
Also, under Netware at least, you can have two queues with the same name,
but on different servers, and the WPS objects will force the port assignments
to be the same.
There is a workaround.. have multiple queues on the server pointing at the
same printers. But this solution adds needless complexity.
Matt Hickman Internet: bhic@chevron.com (713) 754-2389
**********************************************************************
ΓòÉΓòÉΓòÉ 17. Replacing WPS dlls ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I create a new WPS class called TRHfolder, I register it and create an instance
now I deregister it but the WPS still has the dll loaded how do I get WPS to
release it?
Terry Humphries PDA Inc. (913) 469-8700 ( Team OS/2 )
**********************************************************************
You often have to wait 90 seconds. You can change this by putting:
set objectsnoozetime=0
into your config.sys.
OS/2 does seem to have a bug that is doesn't always release dll's,
but waiting usually works for me.
-Gary Kushner
**********************************************************************
ΓòÉΓòÉΓòÉ 18. Associating programs with data objects ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
After receiving faster hardware and installing 2.1 (csd xr02110), I decided
to try some of the GUI features that I had been blissfully ignoring since
the 1.x days. My system does not want to let me associate programs with
data objects. When I do an open-settings-association on the system
editor or enhanced editor, and then add or remove objects, as soon
as I close the settings window, the associations vanish. Reopening
settings confirms this, as does opening up the data objects.
This is not a problem on my neighbor's system. Can anyone suggest
a solution or area of investigation?
**********************************************************************
ΓòÉΓòÉΓòÉ 19. wps + iclui ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Hi,
I do not know if you have found an answer yet, but I am doing something
similar and noticed something which may be a problem (maybe not?).
I noticed that lc32tstM_wpclsInitData() initializes a pointer of type
IPointerHandle and that lc32tstM_wpclsQueryIcon() returns this,
but it is suppose to return HPOINTER. I have used the Value() operator
myself to ensure that I return an HPOINTER. (I think this may be
necessary because the compiler will complain if to try to use
IPointerHandle in a routine which takes HPOINTER as a parameter;
i.e., I do not believe an implicit type cast is done for you).
Try the following, instead of returning IPointerHandle:
return(_hIconThisClass->IHandle::operator Value());
Hope this helps.
**********************************************************************
ΓòÉΓòÉΓòÉ 20. Lockup Over Maximized Window ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Is there a way to bring up the destop settings pull-down (the one you
normally get by clicking the right mouse button on the desktop) when
there is a maximized window in the forground that takes up the whole
screen? I would like to leave a maximized PMGLOBE on my screen and use
the lockup function when I am away from my PC.
Jim Williams
**********************************************************************
Open your desktop settings, select Lockup, go to page 2,
select "Partial Screen". After you lockup, drag the message box off the
bottom of the screen so it doesn't obscure the globe.
Don Hills IBM New Zealand
**********************************************************************
Thanks, but I already have my lockup as a partial window so that is not
my problem. My problem is that after I maximize PMGLOBE (which now
takes up the entire screen) there is no piece of desktop showing to
click my right mouse button on. So, how do I get to the desktop
settings to do the lockup?
Jim Williams
**********************************************************************
| My turn to be embarrassed- corrected key. Thanks, Jim.
Is this a trick question? :-)
ALT-SHIFT-TAB (selects desktop)
CTRL-Backslash (de-selects any selected objects)
SHIFT-F10 (pops up the desktop menu)
L (selects lockup)
This is in the OS/2 "Using the OS" manual, on page 41.
Don Hills IBM New Zealand
**********************************************************************
Thanks, I suppose I should read the manual he said embarrassedly. :-)
However, your second step should read:
CTRL-BACKSLASH
instead of:
CTRL-BACKSPACE
Jim Williams
**********************************************************************
Thanks for the correction- I've been behind the 8-ball all week and
it's only Wednseday. I've read the manual, and the book "OS/2 Unleashed".
I guess that makes me weird...
Don Hills IBM New Zealand
**********************************************************************
ΓòÉΓòÉΓòÉ 21. PM into the WPS ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
(no text entered)
Andy Mendelsohn
**********************************************************************
I would like to incorporate PM elements into the folder class. Specifically,
I would like to add a Pushbutton element that would be associated with
the background of an open folder (with an arbitrary placement relative
to the background). I realize I will have to subclass WP_Folder class
and I believe I can make subclasses, however, how do I incorporate
PM elements into the subclass?
Thanks,
Andy mendelsohn
Andy Mendelsohn
**********************************************************************
If you subclass WPFolder and override wpOpen, when you call the
parent class, the folder class will open the folder. The hwnd returned
is the frame of the folder. FID_CLIENT child of hwndFrame is the
container of the folder. Subclass the container with WinSubclassWindow
and do whatever you want to it.
--Mindy
**********************************************************************
ΓòÉΓòÉΓòÉ 22. Workplace Shell Bug ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Ref: None
From: Henk Kelder
To: Ibm Sysop
Hello IBM !
I'd like to report to follow bug:
OS/2 2.11 US (Service pack applied)
I have a local program object. The objects handle is 2CE25.
In my PM_Workplace:Handles? is a reference to a directory (U:\JAV) on the
network I am connected to during working hours.The object handle is : 3CE25
(Notice that the lower word is the same?)
I just created a shadow to the program object and placed it in the startup
folder. Whenever I open this shadow the workplace shell reports:
The path U:\JAV cannot be found.
Be sure the drive is correct.
Pressing both 'OK' and 'Cancel' has the same effect: The program is started.
The same thing doesn't happen when I open the normal program object.
Clearly, a abstract and fs object mismatch occurs.
Regards,
Henk Kelder
___
* EMEA OS/2 Developer Assistance Program BBS
* gHostNet(0057002C01000000 2d7fef54)
**********************************************************************
I'm impressed that you figured this one out. I had the same
problem and spent a good couple hours debugging it. WPS development
is aware of this problem. (it was in 2.1 also, not just the service
pack). To get rid of the problem for now, recreate the abstract with
the same handle and it will be assigned a new one.
--Mindy
**********************************************************************
From: Henk Kelder
To: S6ghgmjp At Houvmscc╨╢
Hello Mindy,
SH>I'm impressed that you figured this one out. I had the same
SH>problem and spent a good couple hours debugging it. WPS development
SH>is aware of this problem. (it was in 2.1 also, not just the service
SH>pack). To get rid of the problem for now, recreate the abstract with
SH>the same handle and it will be assigned a new one.
It was not so differcult to find since I have written several programs to dump
the contents of workplace shell related data inside the inis. I already solved
the problem by purging the FS object handle from PM_Abstract:Handles using
CheckIni.
Regards,
Henk Kelder
___
* EMEA OS/2 Developer Assistance Program BBS
* gHostNet(0057002C01000000 2d83ef50) reply to (0008037800580000 B49EB776)
**********************************************************************
ΓòÉΓòÉΓòÉ 23. 'Icon Text' Font and the Scheme Palette ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I edit an entry in the "Scheme Palette" and set the 'Icon Text' font the
way that I want it. Then, I hold down ALT and drag the scheme entry out
and drop it on the desktop. Fine so far.
However, I notice that it only seems to make a "partial global" change.
Most of the folders and things on my system get changed, but there are
still a handful of holdouts -- some with a font that is too big, and some
with a font that is too small (this is starting to sound like Goldilocks
and the Three Bears...). I want them all to be just right.
Does anybody know what is going on here, and/or how to fix it?
John A. Pershing Jr.
**********************************************************************
I had/have a similar problem, but with getting the colour of the
icon text to change. Often, it won't.
I discovered the workaround was that while the desktop was flowed
(my preference) the change wouldn't take. Changing to non-grid,
applying the change, and then changing back to flowed did the trick.
Dave Ings
**********************************************************************
I recently installed EXTDESK -- I wonder if this could be the problem...
John A. Pershing Jr.
**********************************************************************
John,
Is it possible that at some time you went into the settings of the
folders that won't change and manually changed the fonts? If so, then
they will stay that way no matter what you do with the Scheme Palette
*_UNLESS_* you go back into those folders and click on the DEFAULT
button on the affected "View" page. If you have customized other
settings on that page, you can change them back afterward, but leave
the Font alone.
This also works for the background (color) page, by the way. When I
was setting up my color scheme, I would drag the scheme into a folder
or two to see what it really looked like before applying it to
the entire system. Then after using the Alt-drag, I would have to
remember to go back and re-enable the default background for those
folders.
Steve Bassler, Allegheny Power
**********************************************************************
I haven't knowingly changed the font of any individual object, but I tend
to have fat fingers, so it is entirely possible. You are correct that
hitting 'Default' works -- I had assumed that this would revert back to
the installation default font (which is too tiny for my liking on my
6091/Image-Adapter system), but it appears to "uncover" the system-wide
default that I have set with the Scheme Palette.
Thanks.
John A. Pershing Jr.
**********************************************************************
ΓòÉΓòÉΓòÉ 24. Alt-tab function in OS/2 2.1 ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I have a customer that is moving a number of users from W* to OS/2
2.1. One function they have used extensively in training there users
is the Alt-tab ability in W* to flip through running applications and
then drop into the one you want. Has anyone simulated this under
OS/2 or written some code to do it???
Dale G. Smith
**********************************************************************
Doug,
Alt-Tab functions in exactly the same way in OS/2 2.1, so no changes
or extra-code should be necessary.
Rex A. Desierto
**********************************************************************
Hmmmm, well I tried Alt-tab and it certainly did more than expected,
but its somewhat different. On W* you press and hold Alt and with each
press of tab, a small centered window appears with an application name
in it. If its not the one you want, you press tab again, if it is
you release Alt and are switched to the app. In OS/2 (from what I saw)
you press and hold Alt and with each press of tab a new application
is brought to the foreground (or its system menu is displayed if
minimized). To switch to it (if its minimized) you have to press
enter. In fact, now that I look, Alt-tab behaves like Alt-esc...
Dale G. Smith
**********************************************************************
Dale,
My fault, you were saying alt-tab, but for some reason, I was reading
alt-esc. Now that I'm reading alt-tab as alt-tab, clearly os/2 does not
display the box with the application icon and title in it. It does
however cycle thru your applications that are on the Desktop.
(i.e. not Minimized) It looks like alt-esc cycles thru apps that are
on the Desktop and minimized apps, although from my experience, neither
of the two keystrokes are consistent with what appears in my Window List
(I still call it Task List from my 1.x days.)
Rex A. Desierto
**********************************************************************
As an alternative to cycling thru all the running applications,
point the mouse at the desktop background and press both mouse
buttons simultaneously and you will get a task list. Double
clicking on the desired program in the tasklist will switch
directly to the chosen application. Or clicking with mouse
button 1 to select an application, then pressing mouse button
2 will bring up the applications system menu.
Gary Coryer
**********************************************************************
I know there are other ways to do it that are native to the WPS,
but the customer is resisting retraining of users. I was just looking
to see if someone had found a way to simulate this behavior or had
written some slick WPS code that functioned the same way...
Dale G. Smith
**********************************************************************
[Reference to append at 18:47 on 94/03/17 by DGSMITH at CHGVMIC1 ]
Dale,
The Alt + Tab keys will switch to the next window. Alt + Esc keys will
switch to the next window or full-screen session. Ctrl + Esc will diplay
the Window List, from the Window List, you can select a new task. For a
complete listing of system tasks, refer to the Keyboard and Mouse Use
Appendix, in the manual OS/2 2.1 Using the Operating System.
Anthony A Thomas Boca Electronic Support Team
**********************************************************************
[Reference to append at 15:58 on 94/03/21 by DGSMITH at CHGVMIC1 ]
The alt-tab function in Windows is fantastic!! Not only is its
task switching fast, but it also allows you to toggle to and fro
between the last two active applications. It is one Windows 3.1
feature that is far superior to that provided by OS/2.
e.g. If you are working with an editor and want to switch to the
file manager task, you can press alt-tab and cycle through the
apps boxes until you find the file manager. You can then do some
work in the File Manager. When you are finished, you can switch
back to the editor using a single alt-tab. To switch back to the
File Manager requires a single alt-tab. So onc can toggle
backwards and forwards between the same two apps very quickly.
Unfortunately on OS/2 the alt-tab takes in the desktop
on the way, so an extra alt-tab is sometimes required to get to
the application you want.
The only way that I have found to create the alt-tab to-and-fro
toggle under OS/2 is to use the SWITCH utility off Hobbes to
turn of the Desk Top switchability. Then if I minimise all
windows to the minimise viewer except for the two I want to
toggle between, I can achieve something close to the Windows
alt-tab to-and-fro toggle.
Mark Berger
**********************************************************************
ΓòÉΓòÉΓòÉ 25. Remove System Setup from Desktop Menu ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Is it possible (either in C or REXX) to remove the
System Setup option from the Desktop popup menu?
Pat Malneritch, Delta Air Lines
**********************************************************************
C - yes, with some SOM/WPS code...
Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/04/05 09:01
**********************************************************************
[Reference to append at 12:25 on 94/04/05 by DALNK03 at HONE82 ]
Pat,
re:
>Is it possible (either in C or REXX) to remove the
>System Setup option from the Desktop popup menu?
Apparently so, but I believe it involves WPS programming. I do know
of one place it is being done, but am under NDA (sort of). The
developer of the package I'm speaking of does frequent this CFORUM
though... maybe he'll see your question and take pity on you <g>.
| Oops... looks like he already answered you...
-Scott Samuelson- Washington Public Power Supply System (509)372-5197
**********************************************************************
[Reference to append at 12:25 on 94/04/05 by DALNK03 at HONE82 ]
Pat,
It can be done, and using REXX or C, you can do it easily on any system
that has the new version of DeskMan/2 installed. If you would like more
details, please feel free to inquire over in the DEVTECH CFORUM.
Thanks!
Evan Bergman - Development Technologies, Inc. ЫDeskMan/2 Tech. Support|
**********************************************************************
ΓòÉΓòÉΓòÉ 26. Move OS/2 from C: to E:? ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Is it possible to move OS/2 (desktop and all) to a different drive? I
know that XCOPY will get the files, directories, and EAs to the other
drive, but is there anything else that needs to be done (apart from
changes to CONFIG.SYS etc.)? Anything hidden in the INI files that
needs to be changed, etc.? Thanks in advance.
Mark Thompson
Coal Services Corp.
St. Louis, MO
**********************************************************************
If you move your desktop from C: to E:, you must do it from workplace
shell. (drives folder)
--Mindy
**********************************************************************
ΓòÉΓòÉΓòÉ 27. Change WPS Desktop Behavior? ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
If two (2) overlapping windows are open on the desktop
and the cursor is moved to the inactive window and the
left mouse button is clicked, then the inactive window
is made the current window and it is brought to the forground.
But when the same thing is done to the WPS desktop,
it is not brought to the foreground. Is there a way to
override the behavior of the WPS desktop so that
it behaves like windows do in the example above?
Jerry Sandridge Compuserve 76260,2166
Pa Blue Shield Internet uswv6k@ibmmail.com
**********************************************************************
The desktop is, by definition, the desktop, and therefore always on the
bottom. You can quickly get the _contents_ of the desktop to the top, though,
by doing a click-2 anywhere on the desktop and doing an Open->Tree view or
Open->Details view.
You can also bring a window containing part of the the Icon view (it can never
be the whole Icon view, since the whole Icon view, by definition, occupies
your entire screen) to the top if you change the Desktop's Object open
behavior from "Display existing window" to "Open new window", but on 2.11,
making this change has the annoying side-effect of causing two desktops to
appear at boot time, so I recommend sticking with Tree or Detail.
John W. Kennedy - Hoechst Celanese - TIPA - Team OS/2 - The OS/2 Hobbit
**********************************************************************
ΓòÉΓòÉΓòÉ 28. How to create desktop ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
We are producing more and more in-house applications for thein the
OS/2 world. We have an Easel application on about 100 workstations,
an AM application on about 150 workstations, so now we naturally
have decided that future development will be in Enfin! Regardless
of the application one thing is constant - the "native" OS/2
desktop is too tempting, distracting, and or confusing for the typical
untrained user.
I love OS/2, but we are losing oodles (technical term) of time trying
to unscramble user machines where the user, "Hasn't touched anything
I swear!"
Question: Is there a way, or a tool, or a reference such that we can
have a desktop where the only thing the user can do is the desired
application?
Russell Baker
Blue Cross & Blue Shield of MD, Inc.
(410) 998-5499
**********************************************************************
You may want to look into the "Secure Workplace for OS/2" by
Syntegration, (909) 464-9450. This app allows you to secure all items
on the DeskTop and limit user access to only those items/functions that
they may need. You can turn off the various functions on the pulldown
menus for those items that they do have access to.
Alan Newman IBM
**********************************************************************
[Reference to append at 15:11 on 94/04/12 by MDBC028 at HONE81 ]
You might want to look into our DeskMan/2 product. Among its many other
functions, it allows you to restrict access to objects, menus, and windows.
For example, I can set up a desktop which is automatically restored to
a previously saved image every time the system boots up. I can set it
up so that the starting image has only one object on it, for example, to
sign-on to the network. I can set it up so that after the user signs onto
the network, the objects that that user is supposed to be able to use are
made visible upon that system. I can set it up so that only those menus
which that user is supposed to use are available for use on that system,
for example, removing Delete, Move, Copy, Find, Sort, Arrange, and Open
Settings menus from all objects.
I can then set it up so that even though only those objects which that user
is allowed to see are on the desktop, that user still needs to provide a
password in order to access any of the PM Windows, such as DOS Settings,
which I might want to protect with a password from casual changes.
Essentially, we can configure the Workplace Shell to almost any desired
degree. Let us know if you'd like further information. You can reach us
here in our support forum, DEVTECH, or by phone at (803) 790-9230.
Evan Bergman - Development Technologies, Inc. ЫDeskMan/2 Tech. Support|
**********************************************************************
[Reference to append at 15:11 on 94/04/12 by MDBC028 at HONE81 ]
Russell,
There are many ways to accomplish what you want to do, but you
will need to invest some time and maybe some dollars for the products
that others have mentioned.
Depending on the exact requirements, you may be able to do what
you are trying to do with just some REXX code or some customized
RC files. Sometimes this may not be enough, and a tool like DeskMan/2
is needed. (DeskMan/2 can do the entire job, don't get me wrong -
but for some situations, it may or may not be needed).
Append a more detailed explanation of the environment and of the
target WPS interface, either here or in DevTech forum, and I'm sure
you'll get all the help you need! :-)
Bret Curran -- Personal Systems Competency Center 1-800-547-1283
IBMMAIL(USIB4CUR) CIS: 71075,3156
**********************************************************************
Bret,
Thanks for the reply. I have contacted some of the vendors BBS people
have suggested and I am interfacing with them. That may end up being
our solution. However... if I can avoid a fee times 500+ workstations
I am sure my management would appreciate it.
I am quite comfortable with REXX. As matter of fact I have been
creating applications with Watcom's VXREXX. It is lots of fun! What
I lack I guess is a knowledge of how the workplace shell works. Maybe
you can recommend some reading. I am not a "C" person.
It is difficult to describe what I want because I don't know what my
options are. Basically I want a user to sit down at their machine
and be able only to perform limited operations i.e. start CM/2,
start custom app. That's it. I don't want them to have the ability
to open any other folders that will inevitably get them into trouble.
But... our technicians need to be able to get to other stuff for trouble
shooting.
Maybe a destop with an folder called OS2STUFF that is password protected
or something like that would be cool. I have just received OS/2
REXX From Bark to Byte and OS/2 2.1 REXX Handbook by German. Maybe
there is something in there. Thanks again.
Russell Baker
Blue Cross & Blue Shield of MD, Inc.
(410) 998-5499
**********************************************************************
Russell,
Glad to help... I understand about the fee times 500 machines
concept, but I'm sure the vendors understand even more. Simply
put, there are many things that are just a lot easier, and sometimes
only possible, through the use of their tools.
The REXX Bark to Byte book is very good overall, and has a pretty
good chapter on WPS and REXX. I can truly say that because most of
that chapter came directly from 2 articles that I wrote in Personal
Systems Technical Solutions magazine last year! <vbg> The other
book has very little, if any, mention of WPS - I did a technical review
of that book, but also of 3 other REXX books at the same time, so it
sort of starts to run together, if you know what I mean. :-)
The concept of putting all "unwanted" objects into one folder,
and then either password protecting that object or hiding that
object, is pretty common and works well. Personally, I like
hiding it, because a user is frustrated more by seeing an object
on their "personal" desktop that they can not get into. By
hiding the object, they no longer see it, plus the administrators
can have a simple REXX program to "unhide" the object when needed.
Hiding is easy - the following line hides the Info folder:
result=SysSetObjectData(<WP_INFO>,NOTVISIBLE=YES);
Fortunately, I have a book coming out that talks about how to
do all of this, some tricks of the trade, some neat ways to accomplish
what you are trying to accomplish, and more... It's tentative title
is Master Your Workplace: Using REXX Programming, and it's an entire
book focus on how to use REXX and some other miscellaneous techniques
and tools to customize the WPS. Publisher will be Prentice Hall.
Unfortunately, it's just beginning the publishing phase and will likely
be another 6-8 weeks before it hits the shelves, I imagine.
In the meantime, if you have any specific questions, just append
out here and I'm sure they'll be answered....
Bret Curran -- Personal Systems Competency Center 1-800-547-1283
IBMMAIL(USIB4CUR) CIS: 71075,3156
**********************************************************************
You're a heck of a guy, Bret.
Joe R Wyatt
USAA
San Antonio, Tx
**********************************************************************
Well, Joe, at first I read your append and thought you
were serious... then I reread my append and noticed how
many "I did..., I ..." statements were in there, and starting
thinking you might be saying it sarcastically. Honestly, I
don't know which it is at this time. I hope it didn't come
across egotistically, and apologize if it did.
As far as the book goes, it's been very difficult keeping quiet
the past few months when I know many questions will be
answered by what's in the book. The answer to the question of
when does one start "advertising" the fact is not an easy one.
Bret Curran -- Personal Systems Competency Center 1-800-547-1283
IBMMAIL(USIB4CUR) CIS: 71075,3156
**********************************************************************
Bret,
I think your a heck of a guy too. New book or no new book!
I read the Bark to Byte stuff and used the example on page 81:
App='PM_Workplace:Location'
call SysIni 'USER', App, 'All:','Keys'
IF Result \= 'ERROR:' THEN
DO...
inside the loop I added the line:
result = SysSetObjectData(Keys.i,'notvisible=yes')
then I added another loop setting notvisible=no
I thought it would be fun to run a program that would make everything
invisible, wait for 10 seconds, then make it visible again. The
program worked, sort of. Some of the icons on my desktop turned
invisible and then visible again. Others were not affected.
Any idea why all desktop objects were not made invisible?
Thanks again for assisting a novice WPS REXXer.
Russell Baker
Blue Cross & Blue Shield of MD, Inc.
(410) 998-5499
**********************************************************************
Obviously, not ALL of your Desktop objects have an object ID assigned...
Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/04/18 14:01
**********************************************************************
[Reference to append at 15:14 on 94/04/18 by MDBC028 at HONE82 ]
Russell,
Thanks. As Greg pointed out, it's most likely because your
objects on your desktop don't all have ObjectIDs... in this case,
a tool like DeskMan/2 is awful handly! --Bret
Bret Curran -- Personal Systems Competency Center 1-800-547-1283
IBMMAIL(USIB4CUR) CIS: 71075,3156
**********************************************************************
[Reference to append at 20:29 on 94/04/14 by CURRANB at DALVM41B ]
No slurs or slanders meant, Bret. I've found your articles quite
useful. It would have taken quite a bit more work writing some of
my rexx wps stuff without them.
Please note: Nothing from here on out is to be taken seriously.
Joe R Wyatt
USAA
San Antonio, Tx
**********************************************************************
ΓòÉΓòÉΓòÉ 29. default directory for bitmaps ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I found the same question that I have but no answer. Is there no
way to tell OS/2 to look elsewhere for bitmaps that c:\os2\bitmap?
The FIND method absolutely stinks!
Russell Baker
Blue Cross & Blue Shield of MD, Inc.
(410) 998-5499
**********************************************************************
I believe my LOCKMAP package was released through the DAP program,
possibly under the name LKMAP. It allows you to select background and
lockup bitmaps from any directory, among other things.
Blair Thompson BLAIR at CANVM2 IBM Canada Ltd.
**********************************************************************
ΓòÉΓòÉΓòÉ 30. ExCal now available through OS/2 Employee Written Software! ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
in OS2EWS CFORUM
FYI...
Dan Kehn
**********************************************************************
ΓòÉΓòÉΓòÉ 31. Screen saver ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I've got a little problem, and I couldn't find any answer.
I use an automatic lockup, and when it starts, I've got a screen saver
which clear the screen and display a moving lock.
I would like to know where I have to go to change parameters for this
screen saver. (how to desactivate it, how to use it WITHOUT
locking my computer, ....)
Thank you in advance for any help,
Raphael Guibaudet -- Havant (UK)
**********************************************************************
The settings for the lockup feature can be found by using the right
mouse button, to bring up the DeskTop pulldown menu and then selecting
settings, you can then select the LockUp tab, this will give you three
pages of setting selections for the LockUp feature. You will however not
be able to have the lockup/screen saver feature active without a password
you can if you wish make the password something simple, such as a single
space, if you wish.
Alan Newman IBM
**********************************************************************
ΓòÉΓòÉΓòÉ 32. Adding items to the System Pop-Up Menu ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I need to add several items to the system pop-up menu. specifically,
I would like to add the objects for the OS/2, DOS, OS/2 Windowed and
DOS Windowed Command prompts. I know how to do this manually; however,
I need to add this to about 1500 OS/2 workstations that we are
just getting ready to upgrade from OS/2 1.3 to OS/2 2.1. Do you know
of a way to do this via REXX (preferrably) or any other suggestions
would be helpful too! Thanks,
Cynthia Berry
Twentieth Century Services
816-340-7973
**********************************************************************
There currently is no way to programmatically add menu items
like the menu page does. The only thing I can think of for
you to do would be to strip the EAs off an OS/2 System folder that
works the way you like it and join it on the OS/2 System folder
of the workstations you with to modify.
| WITH to modify? lookths like I have a lithp
EAUTIL will do it and there may be Rexx functions for manipulating
EAs but I don't know what they are. (EAUTIL comes with OS/2)
--Mindy
**********************************************************************
Mindy, If I drag an object onto the menu page, then later come
back and change the settings of that object, what happens to the
item on the menu?
Dale R. Seng
**********************************************************************
The menu page you added another object to saves two
things about the object: The title to be used for the menu item and
the persistent handle of the object. When you drag a program into
the menu page, the title is set, by default, to the title of the
object, but you can change that to anything without affecting the
object dragged. Using the handle, the menu will always run the
correct program.
My point is, when you drag an object into a menu page and then
change the settings of the object, all settings will be honored
EXCEPT for the title. Since the menu page takes a copy of the title
at the time you do the drag, if you change the title of the object
it will not update the menu page. This may seem inconsistent but
the menu item text isn't necessarily defined to be the TITLE of the
object it points to.
But if you change any other settings on the program (session type,
dos settings, etc.) they will all be reflected when you run it from
the menu item.
--Mindy
**********************************************************************
[Reference to append at 21:37 on 94/04/19 by S6GHGMJP at HOUVMSCC ]
Mindy,
I tried the EAUTIL but it didn't work for me. I created from a
template FOLDER1 and FOLDER2, and then added 2 items to the menu
of FOLDER1.
I then used EAUTIL /s /p to split off the EAs into a temp file,
and then attached them to FOLDER2 with EAUTIL /j.
It worked except for the menu items - I ended up with two folders
named FOLDER1 and so forth. Oh, I also had to do an /o on the join
per the help.
Am I doing something wrong, or does this not always work?
thanks --Bret
**********************************************************************
I wrote a crude program which exists in the OS/2 Developer 1 forum,
OS/2 2.X WPS on CompuServe. This program sends messages to the WPS
to add items to the desktop popup menu and was written because we
needed a way to customize 8000 desktops programmatically. Source is
included so you can add any menu items you wish. It will also set the
sort order if you choose. I have since changed this program to also
add cascaded menu items but have not yet put it on the forum. This
is all I could think of until WPS private methods are made public and
documented.
BRIAN MCMANAMON
FORD CREDIT COMPASS Project
**********************************************************************
Brian, what's the name of your program? Thanks! I'd definitely
be interested in checking it out!
Bret Curran -- Personal Systems Competency Center 1-800-547-1283
IBMMAIL(USIB4CUR) CIS: 71075,3156
**********************************************************************
DESKTOP.ZIP ON 2.X WPS, Developer's 1 forum.
BRIAN MCMANAMON
FORD CREDIT COMPASS Project
**********************************************************************
>
>DESKTOP.ZIP ON 2.X WPS, Developer's 1 forum.
>
>BRIAN MCMANAMON
>FORD CREDIT COMPASS Project
Could this file be put up on this board for download? Please.
Al Brown, Brown & Associates Consulting
Voice: (402)291-1410 Fax: (402)291-1623
**********************************************************************
I did not know this was now available on this new interface? How???
Brian McManamon
Ford Credit COMPASS Project
(313) 390-6408
**********************************************************************
ΓòÉΓòÉΓòÉ 33. Size of Dialogs in OS/2 2.1 ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Ref: None
From: Ccaa2214
To: All
Dialogs prepared using ther OS/2 2.01 dialog editor appear much larger when
displayed under OS/2 2.1. This causes some of our dialogs to overflow the
screen when displayed in OS/2 2.1 and is preventing us from upgrading to OS/2
2.1
Also we have found that the scheme palette utility does not allow dialog
text fonts to be defined and we cannot apply these schemes system wide (ie.
the Alt and drag function does not work under OS/2 2.1).
Please can anyone tell me if I am doing something wrong or are fixes going to
be available in later releases of OS/2 ?
NB. We are using XGA screens attached to PS/2 57 OBA machines.
Bob Tinley.
* EMEA OS/2 Developer Assistance Program BBS
* gHostNet(0057002C01000000 2db57f10)
**********************************************************************
ΓòÉΓòÉΓòÉ 34. (no subject) ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
test
Martin Duy Vo, OT CoC
**********************************************************************
ΓòÉΓòÉΓòÉ 35. Adding ASSOCTYPEs ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Howdy,
I have been REXXing around in OS/2 lately and it has been fun but
it raises a few questions that I hope you more experienced type
people can help me with:
1. What is the value of the ASSOCTYPE? It seems easier to just
add the desired file mask via ASSOCFILTER.
2. If program A has a ASSOCFILTER of *.DOC and program B has an
ASSOCFILTER of *.DOC how does OS/2 know what what program gets
started if one clicks on a data icon?
Thanks.
Russell Baker
Blue Cross & Blue Shield of MD, Inc.
(410) 998-5499
**********************************************************************
For question 1, ASSOCTYPE is useful because not everyone likes
to put extensions on their data file objects. Since the title of
a workplace object is similar to the file name, people like to just
give them nice names with no extensions and assign the proper types
to them.
for question 2, I THINK, workplace will go look for the associated
programs for that data file and list them as views for the data file.
I think it just makes the first one it finds the default. Then the
user can change that in the menu page. I don't know if the default
association can be set programmatically.
--Mindy
**********************************************************************
Mindy,
Thank you for the reply. I was running into difficulty when
trying to set up a new type called DOC that had the filter of
*.doc. When I clicked on my .doc files the system editor kept
getting invoked. After more research in the toolkit I stumbled
across an example for creating the Plain text ASSOCTYPE and it
showed the filter *.DOC. I wanted to confirm that Plain text
included *.DOC but I don't see how I can find out in REXX. In
the toolkit there is wpQueryAssociationType, and lots of other
cool stuff. Do you know if these functions are available via
REXX? I haven't seen them documented anywhere.
Thanks again.
Russell Baker
Blue Cross & Blue Shield of MD, Inc.
(410) 998-5499
**********************************************************************
You currently cannot call any workplace methods via REXX. There may
be some outside applications that provide this function but OS/2
does not.
*.DOC is not tied by definition to Plain Text. It's just that the
os/2 system editor object in workplace is associated to Plain Text
AND *.DOC. THat is why the system editor comes up for the data file.
The way to stop this is to remove the associations for the sytem editor
object.
I think you can do this if you call
SysSetObjectData on <WP_SYSED> and set ASSOCFILTER to *.TXT
(currently it is set to *.TXT,*.DOC)
The only problem is, if you do this on someone else's machine,
they might get miffed that you removed an association that they
were used to having. (Personally, the second I install OS/2 on
my machine I REMOVE the association of the system editor to my data files
but some people might like it)
Hope this helps,
--Mindy
**********************************************************************
ΓòÉΓòÉΓòÉ 36. Changing System Settings via Rexx ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> Originally appended to OS2WPS CFORUM at 21:41:03 on 94/04/12 GMT
|
| This append is being resent as it appears to only be available on
| the Canadian shadow.
|
I didn't get a response in the Rexx forum - is this a better place? ...
I finally received the Rexx Reference Summary Handbook, and eagerly
started coding a command file to customize desktops through NVDM/2.
However, I can't figure out how to accomplish the 2 main changes I want
to make:
1) There is no information about how to append new options to the pop-up
menu. In fact, there is nothing on the Menu Tab at all. Does this
mean it can't be done via Rexx? Does anyone have a 'C' solution?
(I simply want to add an 'OS/2 Window' menu option to the Desktop
pop-up menu).
2) I can't seem to change the Window Tab settings of the System object
(WP_SYSTEM). I know I am using the correct ObjectID because I can
change the Title no problem. I also can change the 3 key-values,
(HIDEBUTTON, MINWIN, and CCVIEW) on other objects (like WP_DESKTOP)
with no problem. When I query the object settings through Deskman/2
both WP_SYSTEM and WP_DESKTOP show the settings that I have changed,
but only WP_DESKTOP reflects those changes when I open up the Settings
Notebook. Do the settings of the Window Tab of WP_SYSTEM have
different key-names or are they protected somehow? I've tried using
the setting 'SETTINGS=YES' - didn't work. I've tried rebooting - nope
Please help if you can!
Mike McVarish - LAN Specialist, Workers Compensation Board
Append copied from OS2REXX CFORUM on OS2BBS
**********************************************************************
Mike,
It is not possible to add popup menu items to a folder via REXX.
The settings that you are trying to change can be changed via
the SysIni call and the PM_ControlPanel application in the OS2.INI
file.
| Of course, the standard disclaimer on the INI file settings not
| being documented should be included. It works today, but is not
| "guaranteed" to work that way in future releases.
Bret Curran -- Personal Systems Competency Center 1-800-547-1283
IBMMAIL(USIB4CUR) CIS: 71075,3156
**********************************************************************
Thanks for the response. Looks like I am going to have to make an
educated guess at which key represents which system setting.
MinButtonType is obvious. HiddenMinWindow is probably "Minimize to
Desktop or Minimized Window Viewer". But there seems to be no key that
represents "Open new or existing window" (CCVIEW for other object).
But testing is half the fun!!!!
Mike McVarish - LAN Specialist, Workers Compensation Board
**********************************************************************
ΓòÉΓòÉΓòÉ 37. Deleting Desktop Objects via REXX ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I need to be able to delete some folders and programs off of an OS/2
2.1 desktop. I've used SysDestroyObj to do this previously. However,
the objects I am deleting do not have objectids. Can anyone suggest
how I might be able to do this via REXX. Also, if you have a "snippet"
of code that could illustrate this that would be very helpful. Thanks!
Cynthia Berry
Twentieth Century Services
816-340-7973
**********************************************************************
Cynthia,
I noticed that you haven't yet had a response here. You can only delete
objects if you have their object IDs or full physical path names. Since
you are trying to delete abstract objects that don't have object IDs or
physical path information, you will need to use a product such as our
DeskMan/2 product, using the methods which we've already reviewed on the
phone and elsewhere.
If you have any other questions regarding this, please feel free to give
us a call at (803) 790-9230 or drop us a message in the DEVTECH CFORUM.
Evan Bergman - Development Technologies, Inc. ЫDeskMan/2 Tech. Support|
**********************************************************************
ΓòÉΓòÉΓòÉ 38. (no subject) ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Moved to OS2REXX CFORUM on OS2BBS by Mike McVarish - LAN Specialist, Workers Compensation Board
**********************************************************************
ΓòÉΓòÉΓòÉ 39. Changing the Screen Resolution via REXX ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Is it possible to change the screen resolution via REXX. I thought that the Sys
call might do this...but, the documentation doesn't seem to indicate this.
To change the screen resolution manual you would go into 'System Setup' then int
'System' program and select the screen tab. We would like to automate this if a
all possible. I am open to other suggestions if SysIni won't work. Thanks!
Cynthia Berry
Twentieth Century Services
816-340-7973
**********************************************************************
ΓòÉΓòÉΓòÉ 40. Creating Shadow Objects with 'Path' information ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
I am creating a couple of shadow objects with only 'path' information,
since I don't have objectid's for these. I am attempting to make
a shadow of the 'Logon' and 'Logoff' program objects from the 'User
Profile Management' folder to a folder we call 'Main'. The code I
use to do this is as follows:
classname='WPShadow'
title='Logon'
location ='<TCMAIN_FLDR>'
setup= 'SHADOWID=C:\MUGLIB\LOGON.EXE'
call BLDOBJ
classname='WPShadow'
title='Logoff'
location ='<TCMAIN_FLDR>'
setup= 'SHADOWID=C:\MUGLIB\LOGOFF.EXE'
call BLDOBJ
BLDOBJ:
result = SysCreateObject(classname, title, location, setup, 'U')
If result=1 then
do
call charout ,'... Object created!'
end
Else
do
call charout ,'... Not created! Return code='result
end
Return
exit
My program icon gets created as it should; however, the title is
not 'Logon' or 'Logoff'...it is Logon.exe and Logoff.exe. The parameters
associated with the Logoff Object do not get transferred to the shadow
either...and when I double click on either the logon or logoff they
don't behave the way they are supposed to. Instead of going instantly
to the logon panel...an OS/2 window opens and then the logon panel
comes up. I also get an OS/2 window prior to logoff executing.
How can I get these program objects to shadow properly?
Cynthia Berry
Twentieth Century Services
816-340-7973
**********************************************************************
You are creating shadows of WPProgramFile objects, i.e. of the real
files. And the behavior you describe is correct for them.
What you want is to create shadows of the WPProgram objects, i.e. program
references. Unfortunately, those are abstract objects and the only way
to access them is to use either the object ID (which they don't have) or
the object handle (which you would have to pull of the OS2.INI files).
I know, you don't like DeskMan/2 but it handles things like this easily
using the REXX/C command line interface. A call like:
Call PerfSH 'Logon "User Profile Management" Main';
would create a shadow of the Logon object in the Main folder...
Greg Czaja 545-4977 GregC at LEXGate 1994/04/26 11:45
**********************************************************************
[Reference to append at 20:39 on 94/04/25 by STW1CYC at HONE82 ]
Instead of using shadows of programs on the LAN, create WPProgram
objects and point them to the executables on the LAN (using
EXENAME=) Same effect, more function.
--Mindy
**********************************************************************
ΓòÉΓòÉΓòÉ 41. CheckINI nit... ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
To: Henk Kelder
I had a funny thing happening to me recently: one of my testers
complained that CheckINI reports an object ID, which my application
creates, as "invalid".
What's funny about it? Well, the object is there, with a valid object
ID. However, it is a descendant of WPTransient. Those, as defined, do
not have persistent object information written to the OS2.INI file, nor a
handle exists for them in INI files. They live in a nirvana of the WPS
address space. BUT! WPS writes out the object ID to the
PM_WorkPlace:Location and CheckINI chokes on it...
It's a minor nit but you may want to know about it.
Greg Czaja 545-4977 GregC at LEXGate 1994/04/26 11:51
**********************************************************************
From: Henk Kelder
To: Gregc At Torolab6╨╢
Hello Greg,
GT>I had a funny thing happening to me recently: one of my testers
GT>complained that CheckINI reports an object ID, which my application
GT>creates, as "invalid".
GT>What's funny about it? Well, the object is there, with a valid object
GT>ID. However, it is a descendant of WPTransient. Those, as defined, do
GT>not have persistent object information written to the OS2.INI file, nor a
GT>handle exists for them in INI files. They live in a nirvana of the WPS
GT>address space. BUT! WPS writes out the object ID to the
GT>PM_WorkPlace:Location and CheckINI chokes on it...
GT>It's a minor nit but you may want to know about it.
Yes, thank you.
Do you know if there is a way to recognize these WPTransient descendants?
Something Like descendents of WPAbstract always have a 1 or a 2 in the high
word of their (numerical) object ID and file system objects always have a 3
there.
Regards,
Henk Kelder
___
* EMEA OS/2 Developer Assistance Program BBS
* gHostNet(0057002C01000000 2dbde340) reply to (0008037800580000 B4DB061D)
**********************************************************************
To: Henk Kelder
WPTransient (and descendant) handles start with 01 - so, it should be
easy. WPAbstracts are 02 - weren't they 00 on 2.0?, WPFileSystem is 03.
Thanks!
Dr Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/04/27 08:31
**********************************************************************
From: Henk Kelder
To: Gregc At Lexvm2╨╢
Hello Gregory,
GL>WPTransient (and descendant) handles start with 01 - so, it should be
GL>easy. WPAbstracts are 02 - weren't they 00 on 2.0?, WPFileSystem is 03.
Well, WPAbstracts were 01 on 2.0, and some users (those who still
managed to use their INI's from 2.0) may still have WPAbstracts with 01.
Are you sure about the 01 for WPTransient ? If so, I wouldn't know how
to solve this little problem without running into problems for those users
with WPAbstracts with 01.
Furthermore, if, like you wrote in your previous message, WPTransient objects
are located somewhere in a black hole, and as far as I know only exist until
shutdown, there is no way to check if an OBJECTID of a WPTransient object
is valid. Am I right here ?
Regards,
Henk Kelder
___
* EMEA OS/2 Developer Assistance Program BBS
* gHostNet(0057002C01000000 2dc08640) reply to (0008037800580000 B4DC2763)
**********************************************************************
To: Henk Kelder
Hm... this 01 inconsistency makes this quite difficult. Yes, I'm sure
about 01 being the handle type for transient objects - I can query it.
And you are right - since the PW_Workplace:Location is about the only
place you can find such an object ID, I don't think it can be fixed
- unless you rewrite CheckINI as a WPS process. How's about that?
I could help !-)
Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/04/29 09:01
**********************************************************************
ΓòÉΓòÉΓòÉ 42. WPS hangs on TREE view ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
When I open a tree view on any drive object my WPS hangs (cursor is
moveable but no keyb or click action, requires power reset). I have
tried CHKDSK & deleting WP ROOT to no avail. I am reluctant to re-
store desktop (2 days old) as this is my ONLY problem. Anyone been
here??
Eric Weil - VM/VSE SysProg
**********************************************************************
ΓòÉΓòÉΓòÉ 43. Minimizing Icons... ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
It looks like when one minimizes a folder icon (say Oscar the Grouch)
the minimized icon at the bottom of the desktop is also Oscar.
However, with a program icon...
when it is minimized it becomes a (boring) OS2 window instead of the
Mailbox or whatever it is on the desktop (before it is started).
Is there a way to have the minimized program icon be the same as the
desktop icon? (before a program is activated).
Thanks,
Patricia Manning
FDIC
**********************************************************************
No. The two are not linked together. Minimized Windows are something
that is created by the program itself. WHen you run a program
it sets its own window title. (or its own minimized window title)
The only reason folders are the same when minimized is because
Workplace Shell is the program that owns those windows and therefore
Sets the window title to be the same as the folder name.
Program objects just fire off applications and the applications
never query workplace to get the name of the object. OS/2 windows
and DOS windows are the same way. Once Workplace runs them, they
never call back to find out what the title of the object is.
--Mindy
**********************************************************************
[Reference to append at 17:35 on 94/05/02 by FDI2SA1 at HONE81 ]
The icon minimize function in the original 2.0 would display the icon
that you had associated with the object/program when you minimized an
object to the Desktop or the Minimize Window Viewer, but that was
changed in the 2.0 SP so that the default icon for those type of objects
was displayed (i.e. OS/2, DOS, OS/2 Window, DOS Window, WinOS2, etc).
This is still the way that it works in the current version of 2.1 or
2.11. This may be changed in a future release, I like it much better the
original way, but the change was made to correct a problem that had been
reported with memory usage in 2.0..
Alan Newman IBM / Boca Electronic Support Team
**********************************************************************
I absolutely agree; it is easier to visually decipher.
I know that the NetView GMF product manages to maintain its view
icons minimized so I can't think that it would be too complex to
reinstate.
Patricia Manning
FDIC
**********************************************************************
ΓòÉΓòÉΓòÉ 44. Setting argument field causes program icon to go dead ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
If I create a program icon with c:\os2\cmd.exe as the executable and "/c net
comm \\rndlib1" (no quotes) as the argument string, upon closing the settings
notebook the icon goes dead and becomes good for nothing except dragging to
the shredder. It will not open and the popup menu no longer works. I'm
running OS/2 2.1+SP.
If there is no argument, or the argument is set to simply "/c" then there is
no problem. I'm assuming for the moment that this problem has something to do
with the double backslash in the argument string. I glanced through the
online help and could find nothing about backslashes having special meaning.
Apparently I'm going to have put the command in a batch file because the
program object cannot tolerate the argument string. Is there a simpler way to
get this to work?
Ralph Scowden (res@sii.com)
**********************************************************************
I tried the same scenario on 2.1GA and there is something fishy about it:
I can see the objects settings correctly, I can force the Settings to
open with wpSetup OPEN=SETTINGS but an attempt to wpOpen/wpViewObject
causes a trap. And the object wouldn't display the context menu at all.
It definitely qualifies for a problem report...
Gregory Czaja, Lexington 8-545-4977 GregC at LEXGate 1994/05/03 15:47
**********************************************************************
ΓòÉΓòÉΓòÉ 45. maj/min version in csc ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Ref: None
From: Mario Semo
To: Ibm
In the
Workplace Shell Programming course ... by skill dynamics
there is a note on page 13.6
WPS requires major and Minor Version to be one and two (for some reasons)
Questions:
WHERE is this official documented?
WHY do the RedBook Samples use 1,1
WHY do the Tutorial Sample on the DevCon CD use 1,1
All other samples (WpCar,...) use 1,2
IS it necessary to have other IBM internal infos to write clean WPS code?
mario.
___
* EMEA OS/2 Developer Assistance Program BBS
* gHostNet(0057003101000000 2dc68310)
**********************************************************************
Mario, using SOM to create a new WPS class, any of the following will
produce an error: 1) Major Version not equal to 1. 2) Minor Version
equal to 0. This is a known problem and will be fixed in future
releases. For now, the official documentation would be the SOM
reference. So as long as the above two points are taken into
consideration, you should not have a problem. If you do, you might want
to send IBM PSP support the test case.
Anil Kommareddi(IBM) Boca Electronic Support Team
**********************************************************************
ΓòÉΓòÉΓòÉ 46. Disabling Ctrl-Esc Alt-Tab Keys ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Is there a way to disable these keys. We have a communications
system on the OS/2 platform, with many background tasks working.
We would like the user to STAY in the Ap, and not fire off a DVM,
switch to another session, or cancel anything that is running
via the window list. Perhaps there are utilities or rexx.cmds
that can address this. Any ideas would be helpful. Thanks.
Gary Wesselhoff Ace Hardware Corporation
Voice (708) 990-6639 Fax (708) 990-0306
**********************************************************************
Gary, there is no way to disable the CTRL-Esc or ALT-TAB sequences. As fo
preventing the user from switching to another session, there is a way to
preventing the user from switching to another session, there is a way to
do it.This works only for an OS/2 application. Edit the CONFIG.SYS to set
the RUNWORKPLACE to CMD.EXE instead of PMSHELL.EXE. When you boot up
now, you go to the command prompt directly. Run you application from
there. The user will not be able to switch to another session. After the
task is done, you can load the OS2 desktop by executing PMSHELL.EXE from
the command prompt. See if that helps.
Anil Kommareddi(IBM) Boca Electronic Support Team
**********************************************************************
Thanks for your reply, I have played around with this, but it seems
to disable multi-tasking...(although without the window list I can't
be sure). I've heard that Deskman/2 can intercept Ctrl-Esc, and that
may be a start. It's a learning curve. As they say "don't sweat it,
it's only zeros and ones." Thanks again.
Gary Wesselhoff Ace Hardware Corporation
Voice (708) 990-6639 Fax (708) 990-0306
**********************************************************************
You might try looking at the utility "The Secure Workplace for OS/2,"
this application will allow you to control access to the "Window List"
and most other functions, to include the ctrl-alt-del key function as
well. This app is produced by Syntegration at tel 909-464-9450.
Alan Newman IBM / Boca Electronic Support Team
**********************************************************************
[Reference to append at 18:08 on 94/05/05 by ACEN009 at HONE82 ]
Gary,
Our DeskMan/2 package does intercept CTRL-ESC, but we do not disable the
other key sequences that you expressed an interest in at this time. However,
if you are interested, please drop us a note on the DEVTECH CFORUM or give
us a call at (803) 790-9230 and we'll discuss it.
We can control and restrict the WPS even further, and we'd be happy to
discuss it with you at your convenience.
Thanks!
Evan Bergman - Development Technologies, Inc. ЫDeskMan/2 Tech. Support|
**********************************************************************
Thanks for the help Evan. Deskman does trap the CTRL-ESC keys
very effectively, but unfortunately the alt tab key will bring the
Viewman/2 to the front, that can easily be closed (and therefore
canceling the trapping of CTRL-ESC). Nothing is easy eh? I've
heard that in the next version of Deskman/2, Viewman/2 can be run
from a command line. This may be the ticket. Deskman is a fantastic
product.
To Alan Newman, thanks for the tip, I'll look into that product too.
Gary Wesselhoff Ace Hardware Corporation
Voice (708) 990-6639 Fax (708) 990-0306
**********************************************************************
ΓòÉΓòÉΓòÉ 47. upgrade to CSET++ 2.1 ΓòÉΓòÉΓòÉ
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Ref: None
From: Mario Semo
To: All
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! WARNING for ALL WPS developers !!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
if you want to upgrade to CSET++ 2.1 and you have WPS objects installed
on your system which depent on CSET++ DLL's (ICLUI,CC,CRT)
Γòócan only happen if you use inhouse versions of the WPS objects, shippable
objects do NOT depend direct on CSET++ DLLs, but depent on DLLRenamed
DLL's. So this can happen if you have testobjects installedΓöÿ.
problem 1: if the objects are on the desktop or in a open folder:
Your system will probably NOT boot anymore.
This is the MOST COMPLEX problem. In this case you cannot deinstall
(deregister) the WPS Classes, from OS/2 itself!!!
problem2 : all objects are in subfolders, so are dormant at bootup.
The problem arives, if you try to open the Template Folder. the folder
opens, nothing is displayed, and the WPS is dead.
Workaround : deregister all WPS objects which depends on CSET++ DLL's
before upgrading to 2.1. ReLink your objects, and install them again later.
Note : IMHO this problem should be stated in a CSET++ Readme file.
mario semo, LC/32 development, KirchnerSoft, Vienna, Austria
___
* EMEA OS/2 Developer Assistance Program BBS
* gHostNet(0057003101000000 2dc823c8)