TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: mark lewis
from: hugo landsman
date: 1995-05-24 15:38:40
subject: REXX programing

hi mark,

 ml> i've just created a fairly simple (for most) REXX program to scan for
 ml> outbound mail on my system. what i would like to do is to place an
 ml> icon indicator on the desktop when it actually falls into the routine
 ml> that scans the outbound mail and then to remove that icon from the
 ml> desktop when the scan is over. i'd also like to place the icon at a
 ml> specific location on the desktop if possible.

At installation time, create a hidden object on the desktop:

/**/
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
Location = ""
Title = "Outbound Scan"
Class = "WPAbstract"
SetupString =
"ICONFILE=C:\MYICON.ICO;ICONPOS=31,21;NOTVISIBLE=YES;OBJECTID=;"
rc = SysCreateObject(Class,Title,Location,SetupString,"Fail")
if rc=0 then say "Couldn't SysCreateObject"


At runtime, unhide it:

/**/
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
rc = SysSetObjectData("","NOTVISIBLE=NO")
if rc=0 then say "Couldn't SysSetObjectData"


etc.  See PM Prog Ref Vol II, wpSetup() and the like for key/value combinations.

regards,
         hugo
* Origin: (2:283/608.5)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 283/608 6 1 512 396/1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.