Thread View: comp.lang.rexx
7 messages
7 total messages
Started by Dave Abercrombie
Thu, 18 Apr 1996 18:03
OS/2 REXX SysCreateObject() WinCreateObject setup string tips?
Author: Dave Abercrombie
Date: Thu, 18 Apr 1996 18:03
Date: Thu, 18 Apr 1996 18:03
29 lines
1367 bytes
1367 bytes
I have not yet found any documentation on what seems like
a simple task: I would like to create a folder with the
icon view set to "flowed". I can create the folder just
fine with code like this:
rc = SysCreateObject( 'WPFolder' ,,
folderName ,,
basePath ,,
'OBJECTID=' || folderID ,,
'R' )
If rc = 0 Then Do
Say "Could not create folder" folderName 'in' basePath
Exit 4
End
I suspect that I could specify flowed icon view
in my WinCreateObject setup string argument, but
no amount of trial and error has worked yet, and
I sure can not fond documentation on this.
Perhaps I could use SysSetObjectData(), but I am
still left with the problem of no documentation
for the WinCreateObject setup string argument.
Please help!
--
Dave Abercrombie (510) 653-1204 122.15.13 W
abe@netcom.com 37.50.58 N
Re: OS/2 REXX SysCreateObject() WinCreateObject setup string tips?
Author: Mike Koehler
Date: Fri, 19 Apr 1996 08:09
Date: Fri, 19 Apr 1996 08:09
23 lines
1396 bytes
1396 bytes
Dave Abercrombie wrote:
>
> I have not yet found any documentation on what seems like
> a simple task: I would like to create a folder with the
> icon view set to "flowed". I can create the folder just
> fine with code like this:
>
> rc = SysCreateObject( 'WPFolder' ,,
> folderName ,,
> basePath ,,
> 'OBJECTID=' || folderID ,,
> 'R' )
Try adding ICONVIEW=FLOWED,NORMAL; like this:
rc = SysCreateObject( 'WPFolder' ,,
folderName ,,
basePath ,,
'ICONVIEW=FLOWED,NORMAL;OBJECTID=' || folderID ,,
'R' )
This info courtesy of Deskman/2 (after asking it to generate rexx to
rebuild a folder set with flowed icons). :)
Re: OS/2 REXX SysCreateObject() WinCreateObject setup string tips?
Author: deh
Date: Fri, 19 Apr 1996 11:30
Date: Fri, 19 Apr 1996 11:30
15 lines
982 bytes
982 bytes
"a simple task: I would like to create a folder with the
icon view set to "flowed". I can create the folder just
fine with code like this:
rc = SysCreateObject( 'WPFolder' ,,
folderName ,,
basePath ,,
'OBJECTID=' || folderID ,,
'R' )"
Try:
'ICONVIEW=FLOWED;OBJECTID=' || folderID ,,
I got this from Mindy Pollack's excellant "OS/2 Warp Workplace Shell API". I believe it's in
the IBM online somewhere, but it's a chore to find.
Re: OS/2 REXX SysCreateObject() WinCreateObject setup string tips?
Author: Gregory Czaja
Date: Sat, 20 Apr 1996 02:38
Date: Sat, 20 Apr 1996 02:38
15 lines
1019 bytes
1019 bytes
In <abeDq2KtH.5DG@netcom.com>, abe@netcom.com (Dave Abercrombie) writes: >I have not yet found any documentation on what seems like >a simple task: I would like to create a folder with the >icon view set to "flowed". Dave, You want the ICONVIEW=FLOWED,NORMAL; setup string. For the best collection of available setup strings, get REXX Reference Handbook by Dick Goran. Indelible Blue has it. Gregory Czaja gregcz@ibm.net ---> DeskMan/2 utilities (71052.720@compuserve.com WZ00329@TalkLink) expanding your object universe...
Re: OS/2 REXX SysCreateObject() WinCreateObject setup string tips?
Author: Rony.Flatscher
Date: Sat, 20 Apr 1996 13:56
Date: Sat, 20 Apr 1996 13:56
31 lines
1696 bytes
1696 bytes
In <abeDq2KtH.5DG@netcom.com>, abe@netcom.com (Dave Abercrombie) writes:
>I have not yet found any documentation on what seems like
>a simple task: I would like to create a folder with the
>icon view set to "flowed". I can create the folder just
>fine with code like this:
Dave:
There are quite a few Rexx-examples and docs floating around the net. To
research on your I suggest you use the search-feature (actually a Rexx-program
running on that GoServe-server) of the OS/2 Forum Austria at
http://www.os2forum.or.at/software/htmlmirrors/
If you enter "rexx and wps" you'll get a listing of all files on either
hobbes.nmsu.edu or ftp.cdrom.com (you choose the server where to look for); the
appropriate index is searched for and the results shown. Simply click on the
file name and it will get ftp'd to your PC.
The file
ftp://hobbes.nmsu.edu/os2/dev32/rexx/rexxwps.zip
Oct 8 09:05 13399 REXX listings from "REXX Report, Summer 1995"
contains (among short Rexx examples) the setup-keywords for the most important
WPS-classes.
If you have access to DevCon than lookup the WPS-documentation for these very
same keywords.
---rony
Re: OS/2 REXX SysCreateObject() WinCreateObject setup string tips?
Author: 76505125
Date: Sun, 21 Apr 1996 07:26
Date: Sun, 21 Apr 1996 07:26
48 lines
2279 bytes
2279 bytes
In <abeDq2KtH.5DG@netcom.com>, abe@netcom.com (Dave Abercrombie) writes:
>I have not yet found any documentation on what seems like
>a simple task: I would like to create a folder with the
>icon view set to "flowed". I can create the folder just
>fine with code like this:
>
>rc = SysCreateObject( 'WPFolder' ,,
> folderName ,,
> basePath ,,
> 'OBJECTID=' || folderID ,,
> 'R' )
>If rc = 0 Then Do
> Say "Could not create folder" folderName 'in' basePath
> Exit 4
> End
>
>I suspect that I could specify flowed icon view
>in my WinCreateObject setup string argument, but
>no amount of trial and error has worked yet, and
>I sure can not fond documentation on this.
>
>Perhaps I could use SysSetObjectData(), but I am
>still left with the problem of no documentation
>for the WinCreateObject setup string argument.
>
>Please help!
>
>--
>Dave Abercrombie (510) 653-1204 122.15.13 W
>abe@netcom.com 37.50.58 N
Your suspicions are correct. Here's the REXX/2 statement:
classname = 'WPProgram'
title = 'Your Title'
location = '<DESKTOP>'
setup = 'OBJECTID = <' || objectid || '>;' || 'ICONVIEW = FLOWED;'
rc = SysCreateObject( classname,title,location,setup, 'U' )
One favor in return? If you ever do find the complete scource for these
setup strings, please let me know at 76505.125@compuserve.com
_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_
"The bitterness of poor quality lingers long after
the sweetness of low price has been forgotten.
danny rubis
Certified OS/2 Engineer
LooK Incorporated
76505.125@compuserve.com
Re: OS/2 REXX SysCreateObject() WinCreateObject setup string tips?
Author: Jim Simmons
Date: Sun, 21 Apr 1996 09:39
Date: Sun, 21 Apr 1996 09:39
34 lines
1994 bytes
1994 bytes
I heard a rumour that Dave Abercrombie <abe@netcom.com> said:
>I have not yet found any documentation on what seems like
>a simple task: I would like to create a folder with the
>icon view set to "flowed". I can create the folder just
>fine with code like this:
>
Very simple, just add 'ICONVIEW=FLOW;' to the settings:
rc = SysCreateObject( 'WPFolder' ,,
folderName ,,
basePath ,,
'OBJECTID=' || folderID || ';ICONVIEW=FLOW;',,
'R' )
>I suspect that I could specify flowed icon view
>in my WinCreateObject setup string argument, but
>no amount of trial and error has worked yet, and
>I sure can not fond documentation on this.
>
It is in the WinCreateObject documentation - which means
you need access to the programmers toolkits.
In particular remember to separate setup bits by ";"
and I find it never hurts to terminate the string with ";" either.
I agree, though, that this stuff should ship with Rexx/2.
--
* * *
* /\__O__/\ * Jim Simmons, Lower Hutt, New Zealand
/ / *\ jim@simmons.actrix.gen.nz
* \\
* \// * __o o
\\ ____/\o__ _ |/<_ <\
\\ TriNZ (_)| (_) / >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads